TASTDocumentHelper.Parse Method
Creates a new AST document from a GraphQL document.
Syntax
Unit: GraphQL.Helpers
class function TASTDocumentHelper.Parse(const Document: string): TASTDocument;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | Document | string | The GraphQL document to be parsed. |
Returns
If the parsing succeeds, a new AST document instance is created, and returned. The AST document will hold the abstract syntax tree representation of the parsed document elements. It's up to the caller to destroy the returned instance.