lib/graphql/schema/mutation.rb in graphql-1.8.18 vs lib/graphql/schema/mutation.rb in graphql-1.9.0.pre1

- old
+ new

@@ -120,10 +120,12 @@ Class.new(object_class) do graphql_name("#{mutation_name}Payload") description("Autogenerated return type of #{mutation_name}") mutation(mutation_class) mutation_fields.each do |name, f| - field(name, field: f) + # Reattach the already-defined field here + # (The field's `.owner` will still point to the mutation, not the object type, I think) + add_field(f) end end end end end