Sha256: b30bc8081c56aee86351803e075c6ff422c6c23fd9eb4ab1a0e0e59c80e6aa82

Contents?: true

Size: 467 Bytes

Versions: 103

Compression:

Stored size: 467 Bytes

Contents

# frozen_string_literal: true
require 'generators/graphql/type_generator'

module Graphql
  module Generators
    # Generate a scalar type by given name.
    #
    # ```
    # rails g graphql:scalar Date
    # ```
    class ScalarGenerator < TypeGeneratorBase
      desc "Create a GraphQL::ScalarType with the given name"
      source_root File.expand_path('../templates', __FILE__)

      private

      def graphql_type
        "scalar"
      end
    end
  end
end

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
graphql-1.13.16 lib/generators/graphql/scalar_generator.rb
graphql-2.0.13 lib/generators/graphql/scalar_generator.rb
graphql-2.0.12 lib/generators/graphql/scalar_generator.rb
graphql-1.13.15 lib/generators/graphql/scalar_generator.rb
graphql-2.0.11 lib/generators/graphql/scalar_generator.rb
graphql-1.13.14 lib/generators/graphql/scalar_generator.rb
graphql-1.13.13 lib/generators/graphql/scalar_generator.rb
graphql-2.0.9 lib/generators/graphql/scalar_generator.rb
graphql-2.0.8 lib/generators/graphql/scalar_generator.rb
graphql-2.0.7 lib/generators/graphql/scalar_generator.rb
graphql-1.13.12 lib/generators/graphql/scalar_generator.rb
graphql-2.0.6 lib/generators/graphql/scalar_generator.rb
graphql-2.0.5 lib/generators/graphql/scalar_generator.rb
graphql-2.0.4 lib/generators/graphql/scalar_generator.rb
graphql-2.0.3 lib/generators/graphql/scalar_generator.rb
graphql-1.13.11 lib/generators/graphql/scalar_generator.rb
graphql-2.0.2 lib/generators/graphql/scalar_generator.rb
graphql-2.0.1 lib/generators/graphql/scalar_generator.rb
graphql-1.13.10 lib/generators/graphql/scalar_generator.rb
graphql-2.0.0 lib/generators/graphql/scalar_generator.rb