Sha256: 6d9366472aaf15d1f83c83be2a9d45c7852c47ef6cbb4e60ec1b23dbb4e5df30

Contents?: true

Size: 681 Bytes

Versions: 5

Compression:

Stored size: 681 Bytes

Contents

# frozen_string_literal: true

module Rails
  module GraphQL
    # = GraphQL Spec Specified By Directive
    #
    # Provides a scalar specification URL for specifying the behavior of
    # custom scalar types.
    class Directive::SpecifiedByDirective < Directive
      self.spec_object = true

      placed_on :scalar

      desc <<~DESC
        A built-in directive used within the type system definition language to provide
        a scalar specification URL for specifying the behavior of custom scalar types.
      DESC

      argument :url, :string, null: false, desc: <<~DESC
        Point to a human-readable specification of the data format.
      DESC
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails-graphql-1.0.2 lib/rails/graphql/directive/specified_by_directive.rb
rails-graphql-1.0.1 lib/rails/graphql/directive/specified_by_directive.rb
rails-graphql-1.0.0 lib/rails/graphql/directive/specified_by_directive.rb
rails-graphql-1.0.0.rc2 lib/rails/graphql/directive/specified_by_directive.rb
rails-graphql-1.0.0.rc1 lib/rails/graphql/directive/specified_by_directive.rb