Sha256: db19e75a7d4ac3217552f1c922eedb9d9cbe87149becfc183b555af7ec6bc33a

Contents?: true

Size: 575 Bytes

Versions: 43

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 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

43 entries across 43 versions & 1 rubygems

Version Path
graphql-1.13.23 lib/generators/graphql/mutation_delete_generator.rb
graphql-1.13.22 lib/generators/graphql/mutation_delete_generator.rb
graphql-1.13.21 lib/generators/graphql/mutation_delete_generator.rb
graphql-1.13.20 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.24 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.23 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.22 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.21 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.20 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.17.2 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.17.1 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.19 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.18 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.17 lib/generators/graphql/mutation_delete_generator.rb
graphql-1.13.19 lib/generators/graphql/mutation_delete_generator.rb
graphql-1.13.18 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.16 lib/generators/graphql/mutation_delete_generator.rb
graphql-1.13.17 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.15 lib/generators/graphql/mutation_delete_generator.rb
graphql-2.0.14 lib/generators/graphql/mutation_delete_generator.rb