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 ExperimentalExecuteIncrementallyResults object. This object either contains a single ExecutionResult as singleResult, or 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<ExperimentalExecuteIncrementallyResults>