Implements the “Executing requests” section of the GraphQL specification.
Returns either a synchronous ExecutionResult (if all encountered resolvers
are synchronous), or a Promise of an ExecutionResult that will eventually be
resolved and never rejected.
If the arguments to this function do not result in a legal execution context,
a GraphQLError will be thrown immediately explaining the invalid input.
This function does not support incremental delivery (@defer and @stream).
If an operation which would defer or stream data is executed with this
function, it will throw or return a rejected promise.
Use experimentalExecuteIncrementally if you want to support incremental
delivery.
Implements the “Executing requests” section of the GraphQL specification.
Returns either a synchronous ExecutionResult (if all encountered resolvers are synchronous), or a Promise of an ExecutionResult that will eventually be resolved and never rejected.
If the arguments to this function do not result in a legal execution context, a GraphQLError will be thrown immediately explaining the invalid input.
This function does not support incremental delivery (
@defer
and@stream
). If an operation which would defer or stream data is executed with this function, it will throw or return a rejected promise. UseexperimentalExecuteIncrementally
if you want to support incremental delivery.