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

- old
+ new

@@ -63,10 +63,10 @@ extend GraphQL::Schema::Resolver::HasPayloadType class << self # Override this method to handle legacy-style usages of `MyMutation.field` def field(*args, &block) - if args.none? + 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 end