Sha256: 477262b0a61326fc0a2616a72a177ab0b5a985e75bf9bb5af31f0af8c9fec332

Contents?: true

Size: 575 Bytes

Versions: 108

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 CreatePostMutation
    class MutationCreateGenerator < OrmMutationsBase

      desc "Scaffold a Relay Classic ORM create mutation for the given model class"
      source_root File.expand_path('../templates', __FILE__)

      private

      def operation_type
        "create"
      end
    end
  end
end

Version data entries

108 entries across 108 versions & 1 rubygems

Version Path
graphql-2.4.9 lib/generators/graphql/mutation_create_generator.rb
graphql-2.4.8 lib/generators/graphql/mutation_create_generator.rb
graphql-2.4.7 lib/generators/graphql/mutation_create_generator.rb
graphql-2.4.6 lib/generators/graphql/mutation_create_generator.rb
graphql-2.4.5 lib/generators/graphql/mutation_create_generator.rb
graphql-2.4.4 lib/generators/graphql/mutation_create_generator.rb
graphql-2.4.3 lib/generators/graphql/mutation_create_generator.rb
graphql-2.4.2 lib/generators/graphql/mutation_create_generator.rb
graphql-2.4.1 lib/generators/graphql/mutation_create_generator.rb
graphql-2.4.0 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.20 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.19 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.18 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.17 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.16 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.15 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.14 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.13 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.12 lib/generators/graphql/mutation_create_generator.rb
graphql-2.3.11 lib/generators/graphql/mutation_create_generator.rb