1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# frozen_string_literal: true
require_relative 'orm_mutations_base'
module Graphql
module Generators
# TODO: What other options should be supported?
#
# @example Generate a `GraphQL::Schema::RelayClassicMutation` by name
# rails g graphql:mutation UpdatePostMutation
class MutationUpdateGenerator < OrmMutationsBase
desc "Scaffold a Relay Classic ORM update mutation for the given model class"
source_root File.expand_path('../templates', __FILE__)
private
def operation_type
"update"
end
end
end
end
|