lib/graphql/pagination/relation_connection.rb in graphql-1.12.5 vs lib/graphql/pagination/relation_connection.rb in graphql-1.12.6

- old
+ new

@@ -30,10 +30,14 @@ def has_next_page if @has_next_page.nil? @has_next_page = if before_offset && before_offset > 0 true elsif first - relation_count(set_limit(sliced_nodes, first + 1)) == first + 1 + if @nodes && @nodes.count < first + false + else + relation_count(set_limit(sliced_nodes, first + 1)) == first + 1 + end else false end end @has_next_page