lib/generators/graphql/templates/mutation.erb in graphql-1.11.3 vs lib/generators/graphql/templates/mutation.erb in graphql-1.11.4
- old
+ new
@@ -1,5 +1,6 @@
+<% module_namespacing_when_supported do -%>
module Mutations
class <%= mutation_name %> < BaseMutation
# TODO: define return fields
# field :post, Types::PostType, null: false
@@ -10,5 +11,6 @@
# def resolve(name:)
# { post: ... }
# end
end
end
+<% end -%>