SchemaIndex

Indexed schema metadata used during code generation.

This keeps the original SchemaType definitions while also providing efficient lookups by schema name so generators can branch on the real schema kind (input object, enum, scalar, object, interface, or union) instead of treating every schema name the same.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Enum definitions discovered from the schema.

Link copied to clipboard

Input object definitions discovered from the schema.

Link copied to clipboard

Interface type definitions discovered from the schema.

Link copied to clipboard

The name of the root mutation type, or null.

Link copied to clipboard

Object type definitions discovered from the schema.

Link copied to clipboard

The name of the root query type, or null.

Link copied to clipboard

Scalar definitions discovered from the schema.

Link copied to clipboard

The name of the root subscription type, or null.

Link copied to clipboard

Union type definitions discovered from the schema.

Functions

Link copied to clipboard

Returns the schema definition registered for name, or null if the name is unknown.

Link copied to clipboard

Returns true if name is a known interface or union type.

Link copied to clipboard

Returns the SchemaType.ObjectType definition for name, or null if not found or if the definition is not an object type.

Link copied to clipboard

Returns the set of concrete object type names that are possible for the given interface or union name.