Skip to content

Data types

Represents a GraphQL ID scalar — a unique identifier serialized as a string.

scalar TypeSpec.GraphQL.ID
model User {
id: GraphQL.ID;
name: string;
}

Options for configuring a GraphQL schema.

model TypeSpec.GraphQL.Schema.SchemaOptions
NameTypeDescription
name?stringThe name of the GraphQL schema. Used in the output filename when emitting
multiple schemas (e.g., {name}.graphql). Defaults to "schema".