Search Results for

    Show / Hide Table of Contents

    TGraphQLExecuter Class

    The main class for GraphQL execution. It generates a response based on some input information.

    Remarks

    The GraphQL executer implements the "execution" of GraphQL, which is the processing of some input parameters - the GraphQL document being the most important one - and the generation of a response. The executer strictly follows chapter 6 of GraphQL specification (Execution: https://spec.graphql.org/June2018/#sec-Execution). The input parameters should be passed in the Create constructor used to create a new TGraphQLExecuter instance. Then the Execute method should be called, and the final response will be avaialable in a TGraphQLResponse object. The executer ever raises an exception. All exceptions, expected or not, are handled and provided in the final GraphQL response in the TGraphQLResponse.Errors property.

    Syntax

    Unit: GraphQL.Executer

    TGraphQLExecuter = class(TObject);

    Constructors

    Name Description
    Create Creates a new TGraphQLExecuter instance using the provided input parameters.

    Methods

    Name Description
    Current Returns the instance which is executing the GraphQL query in the current thread.
    Execute Overloaded
    Execute
    Execute(TGraphQLResponse)
    AddOwnership Overloaded
    AddOwnership(TObject)
    AddOwnership(IInterface)
    In This Article
    Back to top GraphQL for Delphi v1.4
    © 2021 - 2024 tmssoftware.com