lib/graphql/schema/field/connection_extension.rb in graphql-1.9.0.pre3 vs lib/graphql/schema/field/connection_extension.rb in graphql-1.9.0.pre4

- old
+ new

@@ -10,10 +10,10 @@ field.argument :first, "Int", "Returns the first _n_ elements from the list.", required: false field.argument :last, "Int", "Returns the last _n_ elements from the list.", required: false end # Remove pagination args before passing it to a user method - def before_resolve(object:, arguments:, context:) + def resolve(object:, arguments:, context:) next_args = arguments.dup next_args.delete(:first) next_args.delete(:last) next_args.delete(:before) next_args.delete(:after)