Sha256: e4627d7e2d0da784c4b4ebfa3b7b8e60a2c8393629b4ade42193e41708a2155a

Contents?: true

Size: 619 Bytes

Versions: 46

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true
GraphQL::Introspection::EnumValueType = GraphQL::ObjectType.define do
  name "__EnumValue"
  description "One possible value for a given Enum. Enum values are unique values, not a "\
              "placeholder for a string or numeric value. However an Enum value is returned in "\
              "a JSON response as a string."
  field :name, !types.String
  field :description, types.String
  field :isDeprecated, !types.Boolean do
    resolve ->(obj, a, c) { !!obj.deprecation_reason }
  end
  field :deprecationReason, types.String, property: :deprecation_reason
  introspection true
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
graphql-1.7.14 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.13 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.12 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.11 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.10 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.9 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.8 lib/graphql/introspection/enum_value_type.rb
graphql-1.8.0.pre2 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.7 lib/graphql/introspection/enum_value_type.rb
graphql-1.8.0.pre1 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.6 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.5 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.4 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.3 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.2 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.1 lib/graphql/introspection/enum_value_type.rb
graphql-1.7.0 lib/graphql/introspection/enum_value_type.rb
graphql-1.6.8 lib/graphql/introspection/enum_value_type.rb
graphql-1.6.7 lib/graphql/introspection/enum_value_type.rb
graphql-1.6.6 lib/graphql/introspection/enum_value_type.rb