Sha256: 9b9fdee0dee6934b85817914eabf79ff055ba7ba86572f7beae3bff95cd290c6

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

GraphQL::Introspection::EnumValueType = GraphQL::ObjectType.new do |t, type, field|
  t.name "__EnumValue"
  t.description "A possible value for an Enum"
  t.fields({
    name:               field.build(type: !type.String),
    description:        field.build(type: !type.String),
    deprecationReason:  field.build(type: !type.String, property: :deprecation_reason),
    isDeprecated: GraphQL::Field.new { |f|
      f.type !type.Boolean
      f.resolve -> (obj, a, c) { !!obj.deprecation_reason }
    },
  })
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
graphql-0.4.0 lib/graph_ql/introspection/enum_value_type.rb
graphql-0.3.0 lib/graph_ql/introspection/enum_value_type.rb
graphql-0.2.0 lib/graph_ql/introspection/enum_value_type.rb