Sha256: 2e75f2edb769b7f8b20abc9dce407490d634288a80fd1b988b53d2a913a81aa1

Contents?: true

Size: 653 Bytes

Versions: 46

Compression:

Stored size: 653 Bytes

Contents

# frozen_string_literal: true
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
  introspection true
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
graphql-1.7.14 lib/graphql/introspection/field_type.rb
graphql-1.7.13 lib/graphql/introspection/field_type.rb
graphql-1.7.12 lib/graphql/introspection/field_type.rb
graphql-1.7.11 lib/graphql/introspection/field_type.rb
graphql-1.7.10 lib/graphql/introspection/field_type.rb
graphql-1.7.9 lib/graphql/introspection/field_type.rb
graphql-1.7.8 lib/graphql/introspection/field_type.rb
graphql-1.8.0.pre2 lib/graphql/introspection/field_type.rb
graphql-1.7.7 lib/graphql/introspection/field_type.rb
graphql-1.8.0.pre1 lib/graphql/introspection/field_type.rb
graphql-1.7.6 lib/graphql/introspection/field_type.rb
graphql-1.7.5 lib/graphql/introspection/field_type.rb
graphql-1.7.4 lib/graphql/introspection/field_type.rb
graphql-1.7.3 lib/graphql/introspection/field_type.rb
graphql-1.7.2 lib/graphql/introspection/field_type.rb
graphql-1.7.1 lib/graphql/introspection/field_type.rb
graphql-1.7.0 lib/graphql/introspection/field_type.rb
graphql-1.6.8 lib/graphql/introspection/field_type.rb
graphql-1.6.7 lib/graphql/introspection/field_type.rb
graphql-1.6.6 lib/graphql/introspection/field_type.rb