lib/graphql/schema/mutation.rb in graphql-1.13.23 vs lib/graphql/schema/mutation.rb in graphql-2.0.0
- old
+ new
@@ -61,18 +61,9 @@
class Mutation < GraphQL::Schema::Resolver
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, **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
- end
-
def visible?(context)
true
end
private