TGraphQLSchema Class
Non-visual component representing a GraphQL schema.
Remarks
TGraphQLSchema component provides schema information to other non-visual components, like GraphQL HTTP dispatchers, for example. It encapsulates a TSchemaDocument class. Common usage is to provide a schema document specification in the Definition property and add schema initialization code in OnInitSchema event handler. The component will internally create a TSchemaDocument instance based on the schema document definition, and then call OnInitSchema event passing the created instance.
Syntax
Unit: GraphQL.Comp.Schema
TGraphQLSchema = class(TComponent);
Methods
| Name | Description |
|---|---|
| Document | The TSchemaDocument instance created by the component. |
Properties
| Name | Description |
|---|---|
| SchemaClass | Specifies the TSchemaDocument class ot be used. |
| Definition | Holds the GraphQL schema document which will be parsed into a TSchemaDocument instance. |
Events
| Name | Description |
|---|---|
| OnInitSchema | Event called after the TSchemaDocument object is generated. |