@graphql-tools/batch-execute
10.3.2 · 9 Nov 2026MIT15.5M / weekRepositorynpmAtom feed
8.5.22 is the newest release of 8.x.
In short
3 breaking1 internal
- Breaking
ExecutionParams type replaced by Request type
- Breaking
BREAKING CHANGES;
- Breaking
BREAKING CHANGE
Release note
The section about @graphql-tools/batch-execute of a note shared by several packages.
Major Changes
- Breaking
ExecutionParams type replaced by Request type
rootValue property is now a part of the Request type.
When delegating with delegateToSchema, rootValue can be set multiple ways:
when using a custom executor, the custom executor can utilize a rootValue in whichever custom
way it specifies.when using the default executor (execute/subscribe from graphql-js): -- rootValue can be passed
to delegateToSchema via a named option -- rootValue can be included within a subschemaConfig --
otherwise, rootValue is inferred from the originating schema
When using wrapSchema/stitchSchemas, a subschemaConfig can specify the createProxyingResolver
function which can pass whatever rootValue it wants to delegateToSchema as above. - Breaking
BREAKING CHANGES;
Rename
RequesttoExecutionRequestAdd required
operationType: OperationTypeNodefield inExecutionRequestAdd
contextincreateRequestandcreateRequestInfoinstead ofdelegateToSchema
It doesn't rely on info.operation.operationType to allow the user to call an operation from
different root type. And it doesn't call getOperationAST again and again to get operation type
from the document/operation because we have it in Request and ExecutionParams
#3166Improvements;
Memoize
defaultExecutorfor a singleGraphQLSchemaso allowgetBatchingExecutorto memoizebatchingExecutorcorrectly.And there is no different
defaultExecutoris created forsubscriptionand other operation
types. Only one executor is used.
Batch executor is memoized by
executorreference butcreateDefaultExecutordidn't memoize
the default executor so this memoization wasn't working correctly onbatch-executeside.
github.com/ardatan/graphql-tools/blob/remove-in… - Breaking
BREAKING CHANGE
Remove Subscriber and use only Executor
Now
Executorcan receiveAsyncIterableand subscriptions will also be handled byExecutor. This is a future-proof change for defer, stream and live queries
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.