Sha256: 7c3625a5dc67ee560c5a7f02071cd22991e7dd9709bba074a1a1715ec303caef

Contents?: true

Size: 1.31 KB

Versions: 46

Compression:

Stored size: 1.31 KB

Contents

# frozen_string_literal: true
GraphQL::Introspection::TypeType = GraphQL::ObjectType.define do
  name "__Type"
  description "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in "\
              "GraphQL as represented by the `__TypeKind` enum.\n\n"\
              "Depending on the kind of a type, certain fields describe information about that type. "\
              "Scalar types provide no information beyond a name and description, while "\
              "Enum types provide their values. Object and Interface types provide the fields "\
              "they describe. Abstract types, Union and Interface, provide the Object types "\
              "possible at runtime. List and NonNull types compose other types."

  field :kind do
    type !GraphQL::Introspection::TypeKindEnum
    resolve ->(target, a, c) { target.kind.name }
  end

  field :name, types.String
  field :description, types.String
  field :fields,        GraphQL::Introspection::FieldsField
  field :interfaces,    GraphQL::Introspection::InterfacesField
  field :possibleTypes, GraphQL::Introspection::PossibleTypesField
  field :enumValues,    GraphQL::Introspection::EnumValuesField
  field :inputFields,   GraphQL::Introspection::InputFieldsField
  field :ofType,        GraphQL::Introspection::OfTypeField
  introspection true
end

Version data entries

46 entries across 46 versions & 1 rubygems

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