Data types
TypeSpec.GraphQL
Section titled “TypeSpec.GraphQL”Represents a GraphQL ID scalar — a unique identifier serialized as a string.
scalar TypeSpec.GraphQL.IDExamples
Section titled “Examples”model User { id: GraphQL.ID; name: string;}TypeSpec.GraphQL.Schema
Section titled “TypeSpec.GraphQL.Schema”SchemaOptions
Section titled “SchemaOptions”Options for configuring a GraphQL schema.
model TypeSpec.GraphQL.Schema.SchemaOptionsProperties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| name? | string | The name of the GraphQL schema. Used in the output filename when emitting multiple schemas (e.g., {name}.graphql). Defaults to "schema". |