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.
Properties
Enum definitions discovered from the schema.
Input object definitions discovered from the schema.
Interface type definitions discovered from the schema.
The name of the root mutation type, or null.
Object type definitions discovered from the schema.
The name of the root query type, or null.
Scalar definitions discovered from the schema.
The name of the root subscription type, or null.
Union type definitions discovered from the schema.
Functions
Returns the schema definition registered for name, or null if the name is unknown.
Returns true if name is a known interface or union type.
Returns the SchemaType.ObjectType definition for name, or null if not found or if the definition is not an object type.
Returns the set of concrete object type names that are possible for the given interface or union name.