Sha256: 5cf8161f0b0ee39c5037a6fb2f360c3270b2967acd8b73a8e966d7e6cc0b11bb

Contents?: true

Size: 642 Bytes

Versions: 10

Compression:

Stored size: 642 Bytes

Contents

GraphQL::Introspection::FieldType = GraphQL::ObjectType.define do
  name "__Field"
  description "Field on a GraphQL type"
  field :name, !types.String, "The name for accessing this field"
  field :description, types.String, "The description of this field"
  field :type, !GraphQL::Introspection::TypeType, "The return type of this field"
  field :isDeprecated, !types.Boolean, "Is this field deprecated?" do
    resolve -> (obj, a, c) { !!obj.deprecation_reason }
  end
  field :args, field: GraphQL::Introspection::ArgumentsField
  field :deprecationReason, types.String,  "Why this field was deprecated", property: :deprecation_reason
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
graphql-0.16.1 lib/graphql/introspection/field_type.rb
graphql-0.16.0 lib/graphql/introspection/field_type.rb
graphql-0.15.3 lib/graphql/introspection/field_type.rb
graphql-0.15.2 lib/graphql/introspection/field_type.rb
graphql-0.14.2 lib/graphql/introspection/field_type.rb
graphql-0.15.1 lib/graphql/introspection/field_type.rb
graphql-0.15.0 lib/graphql/introspection/field_type.rb
graphql-0.14.1 lib/graphql/introspection/field_type.rb
graphql-0.14.0 lib/graphql/introspection/field_type.rb
graphql-0.13.0 lib/graphql/introspection/field_type.rb