Sha256: 0f47556b41201beac74a6788c0c0c286c7ac50838fc2d430e92a46d2ddc3aaee

Contents?: true

Size: 603 Bytes

Versions: 4

Compression:

Stored size: 603 Bytes

Contents

GraphQL::Introspection::FieldType = GraphQL::ObjectType.define do
  name "__Field"
  description "Object and Interface types are described by a list of Fields, each of which has "\
              "a name, potentially a list of arguments, and a return type."
  field :name, !types.String
  field :description, types.String
  field :args, GraphQL::Introspection::ArgumentsField
  field :type, !GraphQL::Introspection::TypeType
  field :isDeprecated, !types.Boolean do
    resolve -> (obj, a, c) { !!obj.deprecation_reason }
  end
  field :deprecationReason, types.String, property: :deprecation_reason
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
graphql-0.19.3 lib/graphql/introspection/field_type.rb
graphql-0.19.2 lib/graphql/introspection/field_type.rb
graphql-0.19.1 lib/graphql/introspection/field_type.rb
graphql-0.19.0 lib/graphql/introspection/field_type.rb