Object Star Wars::__Type

The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the __TypeKind enum.

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.

Fields

kind: __TypeKind!

name: String

description: String

fields(includeDeprecated: Boolean = false): [__Field!]

interfaces: [__Type!]

possibleTypes: [__Type!]

enumValues(includeDeprecated: Boolean = false): [__EnumValue!]

inputFields: [__InputValue!]

ofType: __Type

Uses

__Field.type

__InputValue.type

__Schema.mutationType

__Schema.queryType

__Schema.subscriptionType

__Schema.types

__Type.interfaces

__Type.ofType

__Type.possibleTypes