lib/graphql/relay/array_connection.rb in graphql-1.9.6 vs lib/graphql/relay/array_connection.rb in graphql-1.9.7
- old
+ new
@@ -11,10 +11,10 @@
if first
# There are more items after these items
sliced_nodes.count > first
elsif GraphQL::Relay::ConnectionType.bidirectional_pagination && before
# The original array is longer than the `before` index
- index_from_cursor(before) < nodes.length
+ index_from_cursor(before) < nodes.length + 1
else
false
end
end