TGraphQLDocumentParser.Execute Method
Overloads
TGraphQLDocumentParser.Execute(string)
Parses a GraphQL document text. Returns its abstract syntax tree as TASTDocument.
Remarks
Throws an exception in case of a syntax error.
Syntax
Unit: GraphQL.Parser
function TGraphQLDocumentParser.Execute(const GraphQLDocument: string): TASTDocument; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | GraphQLDocument | string |
See also
TGraphQLDocumentParser.Execute(string, TList<TGraphQLError>)
Parses a GraphQL document text. Returns its abstract syntax tree as TASTDocument.
Remarks
Does not throw an exception in case of a syntax error. If a syntax error occurs, returns nil and a list of error messages in the Errors parameter.
Syntax
Unit: GraphQL.Parser
function TGraphQLDocumentParser.Execute(const GraphQLDocument: string; Errors: TList<TGraphQLError>): TASTDocument; overload;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | GraphQLDocument | string | |
Errors | TList<TGraphQLError> |