Executor

GraphQL operations are executor by the GraphQL Executor. The executor is responsible for executing the GraphQL operation and returning the result. The executor is also responsible for handling errors and returning the appropriate error response.

The executor uses OperationDelegate to execute the GraphQL operation pipeline. Inputs and outputs to and from the pipeline are contained in the QueryContext class which is passed to the delegate by the executor.

namespace Tanka.GraphQL;

/// <summary>
///     Operation delegate for executing GraphQL operations using the <paramref name="context"/>.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public delegate Task OperationDelegate(QueryContext context);

Next