lib/graphiti/hash_renderer.rb in graphiti-1.3.0 vs lib/graphiti/hash_renderer.rb in graphiti-1.3.1

- old
+ new

@@ -213,14 +213,14 @@ if fields.include?(:has_previous_page) info[:hasPreviousPage] = options[:proxy].pagination.has_previous_page? end if fields.include?(:start_cursor) - info[:startCursor] = serializers.first.cursor + info[:startCursor] = serializers.first.try(:cursor) end if fields.include?(:end_cursor) - info[:endCursor] = serializers.last.cursor + info[:endCursor] = serializers.last.try(:cursor) end hash[top_level_key][:pageInfo] = info end end