Sha256: 0f079662b906d1707732fcb1bebbf11b1a80f3a016bae2212bb4bcc6a9653881

Contents?: true

Size: 575 Bytes

Versions: 76

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 DeletePostMutation
    class MutationDeleteGenerator < OrmMutationsBase

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

      private

      def operation_type
        "delete"
      end
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
graphql-2.4.14 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.3.22 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.1.15 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.32 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.1.14 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.2.17 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.3.21 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.13 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.12 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.11 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.10 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.9 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.8 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.7 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.6 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.5 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.4 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.3 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.2 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.4.1 lib/generators/graphql/mutation_delete_generator.rb