Sha256: 953bd2ef2138039b4e4398522cc3c030adf49ec0ff53caa0766f175fbabac314

Contents?: true

Size: 568 Bytes

Versions: 10

Compression:

Stored size: 568 Bytes

Contents

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
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
graphql-1.2.6 lib/graphql/introspection/enum_value_type.rb
graphql-1.2.5 lib/graphql/introspection/enum_value_type.rb
graphql-1.2.4 lib/graphql/introspection/enum_value_type.rb
graphql-1.2.3 lib/graphql/introspection/enum_value_type.rb
graphql-1.2.2 lib/graphql/introspection/enum_value_type.rb
graphql-1.2.1 lib/graphql/introspection/enum_value_type.rb
graphql-1.2.0 lib/graphql/introspection/enum_value_type.rb
graphql-1.1.0 lib/graphql/introspection/enum_value_type.rb
graphql-1.0.0 lib/graphql/introspection/enum_value_type.rb
graphql-0.19.4 lib/graphql/introspection/enum_value_type.rb