Sha256: 6f3bb20e0d616e896da0b8900ddcb8ec3dd60fbcd6a61511a927ce669526ba6a

Contents?: true

Size: 575 Bytes

Versions: 65

Compression:

Stored size: 575 Bytes

Contents

# 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

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
graphql-2.3.10 lib/generators/graphql/mutation_update_generator.rb
graphql-2.2.16 lib/generators/graphql/mutation_update_generator.rb
graphql-2.1.13 lib/generators/graphql/mutation_update_generator.rb
graphql-2.3.9 lib/generators/graphql/mutation_update_generator.rb
graphql-2.3.8 lib/generators/graphql/mutation_update_generator.rb
graphql-2.3.7 lib/generators/graphql/mutation_update_generator.rb
graphql-2.3.6 lib/generators/graphql/mutation_update_generator.rb
graphql-2.3.5 lib/generators/graphql/mutation_update_generator.rb
graphql-2.0.31 lib/generators/graphql/mutation_update_generator.rb
graphql-2.3.2 lib/generators/graphql/mutation_update_generator.rb
graphql-2.3.1 lib/generators/graphql/mutation_update_generator.rb
graphql-2.3.0 lib/generators/graphql/mutation_update_generator.rb
graphql-2.2.14 lib/generators/graphql/mutation_update_generator.rb
graphql-2.2.13 lib/generators/graphql/mutation_update_generator.rb
graphql-2.2.12 lib/generators/graphql/mutation_update_generator.rb
graphql-2.0.29 lib/generators/graphql/mutation_update_generator.rb
graphql-2.1.12 lib/generators/graphql/mutation_update_generator.rb
graphql-2.2.11 lib/generators/graphql/mutation_update_generator.rb
graphql-2.2.10 lib/generators/graphql/mutation_update_generator.rb
graphql-2.2.9 lib/generators/graphql/mutation_update_generator.rb