@graphql-tools/batch-execute
10.3.2 · 9 Nov 2026MIT15.5M / weekRepositorynpmAtom feed
10.3.2 is the newest release of 10.x.
In short
1 fixed
Release note
The section about @graphql-tools/batch-execute of a note shared by several packages.
@graphql-tools/batch-execute@10.0.9
Patch Changes
Fix
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.
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.