Sha256: c70dd3e15ce25d16b0608743cc47c383215aa6c2996c3e300e0ff022558a46df
Contents?: true
Size: 768 Bytes
Versions: 2
Compression:
Stored size: 768 Bytes
Contents
GraphQL::Introspection::FieldType = GraphQL::ObjectType.new do |t, type, field| t.name "__Field" t.description "Field on a GraphQL type" t.fields({ name: field.build(type: !type.String, desc: "The name for accessing this field"), description: field.build(type: !type.String, desc: "The description of this field"), type: field.build(type: !GraphQL::Introspection::TypeType, desc: "The return type of this field"), isDeprecated: GraphQL::Field.new { |f| f.type !type.Boolean f.description "Is this field deprecated?" f.resolve -> (obj, a, c) { !!obj.deprecation_reason } }, deprecationReason: field.build(type: type.String, property: :deprecation_reason, desc: "Why this field was deprecated"), }) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql-0.3.0 | lib/graph_ql/introspection/field_type.rb |
graphql-0.2.0 | lib/graph_ql/introspection/field_type.rb |