TGraphQLExecuter.Create Constructor
Creates a new TGraphQLExecuter instance using the provided input parameters.
Syntax
Unit: GraphQL.Executer
constructor TGraphQLExecuter.Create(ASchema: TSchemaDocument; ADocument: TASTDocument; const AOperationName: string; AVariableValues: IGraphQLMap; AInitialValue: TValue);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
ASchema | TSchemaDocument | The TSchemaDocument instance containing the GraphQL schema (type information). The schema must be property TSchemaDocument.Initialized. |
|
ADocument | TASTDocument | The TASTDocument instance representing the GraphQL document to be executed. |
|
const | AOperationName | string | The name of the operation to be executed. The operation must exist in the TASTDocument object. This parameter can be an empty string, in this case if the document contains just a single operation, it will be executed, otherwise an error is genereated. |
AVariableValues | IGraphQLMap | A map containing the names and values of input variables. This parameter can be nil. |
|
AInitialValue | TValue | The initial value corresponding to the root type being executed. Conceptually, an initial value represents the “universe” of data available via a GraphQL Service. Can be TValue.Empty. |