Sha256: 9f51bdf0aca259d48f1c675f0175905fb6ac0d63d03999638177fc3018bcb6c4

Contents?: true

Size: 379 Bytes

Versions: 55

Compression:

Stored size: 379 Bytes

Contents

GraphQL::Introspection::EnumValueType = GraphQL::ObjectType.define do
  name "__EnumValue"
  description "A possible value for an Enum"
  field :name, !types.String
  field :description, types.String
  field :deprecationReason, types.String, property: :deprecation_reason
  field :isDeprecated, !types.Boolean do
    resolve -> (obj, a, c) { !!obj.deprecation_reason }
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
graphql-0.18.15 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.14 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.13 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.12 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.11 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.10 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.9 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.8 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.7 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.6 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.5 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.4 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.3 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.2 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.1 lib/graphql/introspection/enum_value_type.rb
graphql-0.18.0 lib/graphql/introspection/enum_value_type.rb
graphql-0.17.2 lib/graphql/introspection/enum_value_type.rb
graphql-0.17.1 lib/graphql/introspection/enum_value_type.rb
graphql-0.17.0 lib/graphql/introspection/enum_value_type.rb
graphql-0.16.1 lib/graphql/introspection/enum_value_type.rb