Skip to main content

experimentalExecuteIncrementally

Callable


  • Implements the "Executing requests" section of the GraphQL specification, including @defer and @stream as proposed in https://github.com/graphql/graphql-spec/pull/742

    This function returns a Promise of an ExperimentalIncrementalExecutionResults object. This object either consists of a single ExecutionResult, or an object containing an initialResult and a stream of subsequentResults.

    If the arguments to this function do not result in a legal execution context, a GraphQLError will be thrown immediately explaining the invalid input.


    Parameters

    Returns PromiseOrValue<ExecutionResult | ExperimentalIncrementalExecutionResults>