lib/graphql/schema/mutation.rb in graphql-1.10.0.pre3 vs lib/graphql/schema/mutation.rb in graphql-1.10.0.pre4

- old
+ new

@@ -62,10 +62,10 @@ extend GraphQL::Schema::Member::HasFields extend GraphQL::Schema::Resolver::HasPayloadType class << self # Override this method to handle legacy-style usages of `MyMutation.field` - def field(*args, &block) + def field(*args, **kwargs, &block) if args.empty? raise ArgumentError, "#{name}.field is used for adding fields to this mutation. Use `mutation: #{name}` to attach this mutation instead." else super end