lib/generators/graphql/templates/interface.erb in graphql-1.13.6 vs lib/generators/graphql/templates/interface.erb in graphql-1.13.7
- old
+ new
@@ -1,8 +1,10 @@
+# frozen_string_literal: true
+
<% module_namespacing_when_supported do -%>
module Types
- module <%= type_ruby_name.split('::')[-1] %>
+ module <%= ruby_class_name %>
include Types::BaseInterface
-<% normalized_fields.each do |f| %> <%= f.to_ruby %>
+<% normalized_fields.each do |f| %> <%= f.to_object_field %>
<% end %> end
end
<% end -%>