@graphql-tools/batch-execute
10.3.2 · 9 Nov 2026MIT15.5M / weekRepositorynpmAtom feed
87 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 10.x · latest line
10.3.2
9 Nov 2026Dependencies updates:
10.3.1
2 Nov 2026Batch only requests that share the same
contextincreateBatchingExecutor
10.3.0
23 Oct 2026Execution cancellation on batched requests
When using Batched Execution, it is now possible to cancel the entire batched request if all individual requests'
AbortSignals are aborted. This enhancement improves resource management and responsiveness in applications that utilize batched GraphQL operations.Previously, aborting individual requests did not affect the batched request. With this update, if all individual requests signal an abort, the batched request will also be aborted, ensuring that unnecessary processing is avoided.
This feature is implemented using the new utility function
abortSignalAll, which combines multipleAbortSignalinstances into a single signal. If all of the individual signals are aborted, the combined signal will also be aborted, allowing for more efficient cancellation handling in batched operations.Support
@defer/@streamincremental delivery within schema stitching.Gateway-owned
@defer(default): deferred selections are omitted from subgraph requests (only@requires/ key dependencies are kept), so nested@defercan flush before slow fields resolve. Missing fields are filled later via type-merging or source resolvers.Subgraph-forwarded
@defer: setdefer: trueon aSubschemaConfig(ordefer: trueongetStitchedSchemaFromSupergraphSdl) to forward@deferto that subgraph and merge incremental patches viaIncrementalReceiver. Withbatch: trueandbatchingOptions.defer(orsubschema.defer), multi-request batches wrap each root selection in@deferfor subgraph compatibility; results are still collected before DataLoader waiters resolve. Single-request batches pass the AsyncIterable through so the initial payload can flush before deferred patches arrive.Hive Gateway config: extend
deferStreaminstead of a separate flag:deferStream: true // client-facing only (gateway-owned omit) deferStream: { subgraph: true } // also forward @defer to every subgraph deferStream: { subgraph: { users: true, '*': false } } // per-subgraph@graphql-tools/executor-httpaddsmergeIncremental(defaulttrue: legacy growing snapshots). SetmergeIncremental: falseto yield raw multipart parts like the default schema executor. Hive Gateway's@graphql-mesh/transport-httpalways uses passthrough (mergeIncremental: false).IncrementalReceiverprefers raw patches and cheaply tolerates accumulated snapshots (only fills missing keys). The HTTP executor preserveshasNextin accumulate mode.@streamcontinues to be forwarded on field directives as before. List streaming in@graphql-tools/delegateuses a plain async generator (no@repeaterjs/repeaterdependency).Hive Router runtime does not plan incremental delivery yet;
deferStream.subgraphapplies to the stitching federation path.Dependencies updates:
@graphql-tools/batch-execute@10.3.0
Minor Changes
Execution cancellation on batched requests
When using Batched Execution, it is now possible to cancel the entire batched request if all individual requests'
AbortSignals are aborted. This enhancement improves resource management and responsiveness in applications that utilize batched GraphQL operations.Previously, aborting individual requests did not affect the batched request. With this update, if all individual requests signal an abort, the batched request will also be aborted, ensuring that unnecessary processing is avoided.
This feature is implemented using the new utility function
abortSignalAll, which combines multipleAbortSignalinstances into a single signal. If all of the individual signals are aborted, the combined signal will also be aborted, allowing for more efficient cancellation handling in batched operations.Support
@defer/@streamincremental delivery within schema stitching.Gateway-owned
@defer(default): deferred selections are omitted from subgraph requests (only@requires/ key dependencies are kept), so nested@defercan flush before slow fields resolve. Missing fields are filled later via type-merging or source resolvers.Subgraph-forwarded
@defer: setdefer: trueon aSubschemaConfig(ordefer: trueongetStitchedSchemaFromSupergraphSdl) to forward@deferto that subgraph and merge incremental patches viaIncrementalReceiver. Withbatch: trueandbatchingOptions.defer(orsubschema.defer), multi-request batches wrap each root selection in@deferfor subgraph compatibility; results are still collected before DataLoader waiters resolve. Single-request batches pass the AsyncIterable through so the initial payload can flush before deferred patches arrive.Hive Gateway config: extend
deferStreaminstead of a separate flag:deferStream: true // client-facing only (gateway-owned omit) deferStream: { subgraph: true } // also forward @defer to every subgraph deferStream: { subgraph: { users: true, '*': false } } // per-subgraph@graphql-tools/executor-httpaddsmergeIncremental(defaulttrue: legacy growing snapshots). SetmergeIncremental: falseto yield raw multipart parts like the default schema executor. Hive Gateway's@graphql-mesh/transport-httpalways uses passthrough (mergeIncremental: false).IncrementalReceiverprefers raw patches and cheaply tolerates accumulated snapshots (only fills missing keys). The HTTP executor preserveshasNextin accumulate mode.@streamcontinues to be forwarded on field directives as before. List streaming in@graphql-tools/delegateuses a plain async generator (no@repeaterjs/repeaterdependency).Hive Router runtime does not plan incremental delivery yet;
deferStream.subgraphapplies to the stitching federation path.
Patch Changes
Dependencies updates:
Added dependency
@graphql-hive/signal@^2.0.0↗︎ (todependencies)
Use semver dependencies matched by minor
10.2.0
8 Sep 2026Support GraphQL 16 with @graphql-tools/utils v12
Preserves GraphQL 16 compatibility while upgrading to
@graphql-tools/utilsv12,@graphql-tools/executorv2, and the compatible@graphql-tools/schemaand@graphql-tools/mergereleases. Consumers now receive consistent resolver and execution request types without conflicts between different GraphQL Tools versions.Stitched and delegated operations handle the new executor variable result shape correctly, including variables used by directives. Resolver execution also supports the executor's cancellation and asynchronous work helpers while remaining compatible with the GraphQL 16
GraphQLResolveInfoAPI.Dependencies updates:
10.1.0
7 Sep 2026Fixes #1288.
Per the GraphQL spec a non-nullable field returning null should propagate to the parent, in this case it should propagate to data.
Batched sub-requests share one merged document so null should propagate to every result and not just the one whose fields actually failed.
10.0.9
3 Jul 2026Fix
DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Arraythrown when a batched subgraph response omits some of the merged sub-requests.splitResultbuildsnew Array(numResults)and only assigns the indices present in the merged response'sdata/errors. When a subgraph answers only some of the batched operations — returning neither a data key nor a path-scoped error for the rest — those slots stay holes. A hole at the trailing slot fails DataLoader'sisArrayLikecheck (which requireshasOwnProperty(length - 1)) even thoughArray.isArrayistrue, so the batching executor's DataLoader throws. The result is now densified tonumResults, filling any missing slot with an emptyExecutionResult.This mirrors the sibling fix for
@graphql-tools/batch-delegatein #2393.
10.0.8
3 Apr 2026Inherit
operationName,operationType,context,info, andsubgraphNamefrom any available request in the batch.
IfoperationNameis not defined, it will be inherited from the operation itself, if it has a name.
10.0.7
16 Mar 2026Add automatic batching to SDK requester
10.0.6
15 Mar 2026Fix missing NPM provenance attestation by enabling
npmPublishProvenancein Yarn configuration
10.0.5
8 Jan 2026Dependencies updates:
10.0.4
19 Nov 2025Dependencies updates:
10.0.3
7 Nov 2025Dependencies updates:
Dependencies updates:
10.0.2
1 Nov 2025Dependencies updates:
10.0.1
15 Sep 2025Dependencies updates:
10.0.0
4 Sep 2025- Breaking
Drop Node 18 support
Least supported Node version is now v20.
Fixed subgraph name being lost when execution requests get batched together.
- 9.x
9.0.19
1 Aug 2025Dependencies updates:
9.0.18
23 Jul 2025Dependencies updates:
9.0.17
2 Jun 2025Small improvements on usage of promise helpers
9.0.16
16 May 2025Spread sync errors into an array with the same size of the requests to satisfy underlying DataLoader implementation to throw the error correctly
9.0.15
25 Mar 2025Dependencies updates:
9.0.14
20 Mar 2025Dependencies updates:
9.0.13
11 Mar 2025Dependencies updates:
9.0.12
13 Feb 2025Dependencies updates:
9.0.11
24 Dec 2024Dependencies updates:
9.0.10
6 Dec 2024Dependencies updates:
9.0.9
4 Dec 2024Dependencies updates:
Dependencies updates:
9.0.8
2 Dec 2024Fix the issue that batched query generation when optional variables are not prefixed and sent correctly.
See the use case below;
When two batched queries are sent like below;
query TestOne($someOptionalVar: String) { foo(someOptionalArg: $someOptionalVar) { id name } }query TestTwo($someOptionalVar: String) { foo(someOptionalArg: $someOptionalVar) { id name } }And then
someOptionalVaris not prefixed if the value is not sent by the user. The batched queries will be sent as below, then it will cause issues.query TestOneTwo($someOptionalVar: String, $someOptionalVar: String) { _0_foo: foo(someOptionalArg: $someOptionalVar) { id name } _1_foo: foo(someOptionalArg: $someOptionalVar) { id name } }
9.0.7
27 Nov 2024Dependencies updates:
Dependencies updates:
Dependencies updates:
9.0.5 – 9.0.62 releases with no change for you1 dependency update, 1 without a note@graphql-tools/utils 10.5.5Show each
- 9.0.613 Nov 2024no note
- 9.0.515 Oct 2024@graphql-tools/utils 10.5.5
9.0.4
23 Feb 2024#5913
83c0af0Thanks @enisdenjo! - dependencies updates:
9.0.1
9 Aug 2023Only updates a dependency:@graphql-tools/utils 10.0.5
- 8.x
8.5.21
24 Apr 20238.5.19
13 Apr 20238.5.16
1 Feb 2023Only updates a dependency:@graphql-tools/utils 9.2.0
8.5.8 – 8.5.147 releases that only update dependencies@graphql-tools/utils 9.1.3Show each
- 8.5.147 Dec 2022@graphql-tools/utils 9.1.3
- 8.5.137 Dec 2022@graphql-tools/utils 9.1.2
- 8.5.1214 Nov 2022@graphql-tools/utils 9.1.1
- 8.5.117 Nov 2022@graphql-tools/utils 9.1.0
- 8.5.102 Nov 2022@graphql-tools/utils 9.0.1
- 8.5.91 Nov 2022@graphql-tools/utils 9.0.0
- 8.5.831 Oct 2022@graphql-tools/utils 8.13.1
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.