lib/graphql/pagination/relation_connection.rb in graphql-1.13.3 vs lib/graphql/pagination/relation_connection.rb in graphql-1.13.4
- old
+ new
@@ -206,10 +206,13 @@
end
@paged_nodes_offset = relation_offset
paginated_nodes = items
paginated_nodes = set_offset(paginated_nodes, relation_offset)
- set_limit(paginated_nodes, relation_limit)
+ if relation_limit
+ paginated_nodes = set_limit(paginated_nodes, relation_limit)
+ end
+ paginated_nodes
end
end
# Load nodes after applying first/last/before/after,
# returns an array of nodes