Search Results for

    Show / Hide Table of Contents

    TGraphQLDocumentParser.Execute Method

    Overloads

    • TGraphQLDocumentParser.Execute(string)
    • TGraphQLDocumentParser.Execute(string, TList<TGraphQLError>)

    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

    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>

    See also

    • TGraphQLDocumentParser
    In This Article
    Back to top GraphQL for Delphi v1.4
    © 2021 - 2024 tmssoftware.com