lib/souls/generate/mutation.rb in souls-0.25.16 vs lib/souls/generate/mutation.rb in souls-0.25.17

- old
+ new

@@ -10,11 +10,11 @@ File.open(file_path, "w") do |new_line| new_line.write(<<~TEXT) module Mutations module Base::#{singularized_class_name.camelize} class Create#{singularized_class_name.camelize} < BaseMutation - field :#{singularized_class_name}_edge, Types::#{singularized_class_name.camelize}.edge_type, null: false + field :#{singularized_class_name}_edge, Types::#{singularized_class_name.camelize}Type.edge_type, null: false field :error, String, null: true TEXT end file_path @@ -104,10 +104,10 @@ File.open(file_path, "w") do |new_line| new_line.write(<<~TEXT) module Mutations module #{class_name.camelize} class Update#{class_name.camelize} < BaseMutation - field :#{class_name}_edge, Types::#{class_name.camelize}.edge_type, null: false + field :#{class_name}_edge, Types::#{class_name.camelize}Type.edge_type, null: false argument :id, String, required: true TEXT end file_path