@graphql-tools/stitch
10.4.4 · 12 Nov 2026MIT546k / weekRepositorynpmAtom feed
243 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 10.x · latest line
10.4.4
12 Nov 2026Only updates dependencies:@graphql-tools/delegate 12.3.4@graphql-tools/batch-delegate 10.1.6@graphql-tools/wrap 11.2.6
10.4.3
9 Nov 2026Dependencies updates:
@graphql-tools/stitch@10.4.3
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/utils@^12.1.0↗︎ (from^12.0.1, independencies)
10.4.1 – 10.4.22 releases that only update dependencies@graphql-tools/delegate 12.3.2@graphql-tools/batch-delegate 10.1.4@graphql-tools/wrap 11.2.4Show each
10.4.0
23 Oct 2026Summary· from the note as AI read it
Nothing to change: 1 new, 3 fixed.
@graphql-tools/stitch@10.4.0
Minor Changes
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
Allow
@mergewithoutkeyArgwhen the resolver takes zero arguments, and make keyless type merges work when the initial subschema cannot satisfy the requested fields (graphql-tools#4337).Previously the validator rejected
@mergeon zero-arg fields (args.length !== 1). It now allows zero or one argument and only errors when there are multiple args withoutkeyArg/argsExpr.Separately, keyless merges such as:
merge: { Stats: { fieldName: 'stats', args: () => ({}), }, }had no key
selectionSet. When the subschema that ownedQuery.statsdid not have the requested fields (for example querying onlytotalChirpswhile that field lived on the other subschema),finalizeGatewayRequeststripped the empty nested selection and failed with "The request must contain at least one operation."For merged types that have resolvers but no key
selectionSet, stitching now injects__typenameintofieldNodesByTypeso a stub object remains and type merging can fill the remaining fields. This matches the partial-field failure called out in this discussion. Keyed merges (selectionSet: '{ id }') are unchanged.Merged type resolvers now preserve the parent
mutationoperation when the merge entry point lives onMutation(graphql-tools#4549).Previously
createMergedTypeResolveralways usedoperation: 'query'. When type merging ran during a mutation and the merge entry point existed only underMutation(or the subgraph rejected mutation fields executed as queries), merged fields came back null.Example: two subschemas each expose
Mutation.zeroUser/Mutation.oneUseras merge entry points forUser. A client mutation that selects fields from both users now re-delegates those merges as mutations, so subgraphs that distinguish mutation vs query resolvers keep working.Query-only merge fields (Federation
_entities) still delegate asqueryeven when the gateway operation is a mutation. Subscriptions are also unchanged: merges while resolving a subscription event usequery, because you cannot re-subscribe for entity fields. Scope follows the mutation-vs-query discussion.Fix type merging for unions queried with inline fragments (graphql-tools#4965 / #4966).
Typical setup: one subschema returns a stub member (
StubMajor { id }) while another resolves the real union members via@merge:# students union Major = StubMajor type StubMajor { id: String! } # majors type Query { major(id: String!): Major @merge(keyField: "id") } union Major = MajorSuccess | MajorErrorClient query:
major { ... on MajorSuccess { id name } ... on MajorError { id code } }Three problems stacked:
@mergeon a union only registered concrete members (MajorSuccess/MajorError), notMajoritself, so aStubMajorresult never triggered merge.MergedTypeInfowas not built for union types, and planners assumed object/interfacegetFields().Expanding a bare merge-key field (
id) on a union into... on StubMajor { id }returned an array from the FIELD visitor; graphql-jsvisitnests that array as one selection instead of splicing it, so execution ignored the fragment and the merge key was never queried (major(id: $id)ran with empty variables).
Fixes:
Register the abstract union/interface name for
@mergeas well as concrete members.Build merge info for unions; treat unions as field-less so the abstract planner re-fetches via inline fragments.
Flatten nested selection arrays after union field expansion so stub keys are actually requested.
This goes beyond the schema-extension workaround discussed on the issue.
10.3.2
8 Oct 2026Only updates dependencies:@graphql-tools/delegate 12.2.1@graphql-tools/batch-delegate 10.1.1@graphql-tools/wrap 11.2.1
10.3.1
28 Sep 2026stitchSchemasno longer mutates the resolver objects passed inresolvers.The wrapper it adds around resolvers of fields that return a merged type (so the merged type's fields get resolved) used to be written back into the caller's field config (
existing.resolve = wrappedResolve). A resolver map reused acrossstitchSchemascalls — a gateway's additional resolvers on every supergraph reload — therefore gained one wrapper per call, and every wrapper kept its call'sstitchingInfo, and with it the entire superseded schema, subschemas and executors, reachable: a heap leak of one schema generation per reload.Nesting also changed behaviour, because
wrappedResolvecloses over its own call'sstitchingInfoand the innermost (oldest) wrapper runs first: such a field hydrated through a superseded call's stitching plan and executors, and once that hydration satisfied the selection the newest wrapper found nothing left to resolve.The merged resolver map is now cloned before the wrappers are added. Enum value maps, scalars, union and input type resolvers and plain resolver functions are still passed through by reference, so their identities are unchanged.
10.3.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:
@graphql-tools/stitch@10.3.0
Minor Changes
Support 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.
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/executor@^2.0.1↗︎ (from^1.4.13, independencies)Updated dependency
@graphql-tools/merge@^9.2.4↗︎ (from^9.1.5, independencies)Updated dependency
@graphql-tools/schema@^10.1.1↗︎ (from^10.0.29, independencies)Updated dependency
@graphql-tools/utils@^12.0.1↗︎ (from^11.0.0, independencies)
10.2.5
7 Sep 2026Only updates dependencies:@graphql-tools/delegate 12.1.4@graphql-tools/batch-delegate 10.0.32@graphql-tools/wrap 11.1.24
10.2.4
3 Sep 2026Flush deferred merged fields without blocking the initial payload
Deferred fields on merged entity types are now delegated when their deferred resolvers run instead of being included in the initial delegation plan. This allows the initial payload to be delivered before slower merged subgraph fields resolve.
@graphql-tools/stitch@10.2.4
Patch Changes
Flush deferred merged fields without blocking the initial payload
Deferred fields on merged entity types are now delegated when their deferred resolvers run instead of being included in the initial delegation plan. This allows the initial payload to be delivered before slower merged subgraph fields resolve.
10.2.2 – 10.2.32 releases that only update dependencies@graphql-tools/delegate 12.1.2@graphql-tools/batch-delegate 10.0.30@graphql-tools/wrap 11.1.22Show each
10.2.1
23 Jul 2026Reduce peak memory consumption for
stitchSchemasfunction
10.2.0
20 Jul 2026Automatically resolve plain merged-type references returned by local stitching resolvers
Local fields introduced through
typeDefsorresolversare wrapped bystitchSchemas. When they return a partial merged type containing a usable key, stitching performs one initial delegation with type merging enabled. The existing stitching planner then handles computed fields,@requiresdependencies, batching, nested entities, and fields owned by other subschemas.Fields that are not provided by any subschema (added through
typeDefsorresolvers) can now return partial objects of merged types; the missing fields are resolved from the owning subschema automaticallytype Query { personCreated: PersonCreated } type PersonCreated { person: Person # merged type, owned by a subschema cursor: String }const resolvers = { Query: { // only the key of `Person` is provided locally personCreated: () => ({ person: { id: '1' }, cursor: 'c1' }), }, };Before,
personhad to be resolved manually even though the stitched schema knowsPersonand its keys. Now the key is enough:{ person { name } }runs through the standard stitching planner, while local data (cursor) and local field resolvers onPersonkeep working as before. Computed fields,@requiresdependencies, batching, and fields from other subschemas use the same type-merging flow as regular delegated results.
@graphql-tools/stitch@10.2.0
Minor Changes
Automatically resolve plain merged-type references returned by local stitching resolvers
Local fields introduced through
typeDefsorresolversare wrapped bystitchSchemas. When they return a partial merged type containing a usable key, stitching performs one initial delegation with type merging enabled. The existing stitching planner then handles computed fields,@requiresdependencies, batching, nested entities, and fields owned by other subschemas.
Patch Changes
Fields that are not provided by any subschema (added through
typeDefsorresolvers) can now return partial objects of merged types; the missing fields are resolved from the owning subschema automaticallytype Query { personCreated: PersonCreated } type PersonCreated { person: Person # merged type, owned by a subschema cursor: String }const resolvers = { Query: { // only the key of `Person` is provided locally personCreated: () => ({ person: { id: '1' }, cursor: 'c1' }), }, };Before,
personhad to be resolved manually even though the stitched schema knowsPersonand its keys. Now the key is enough:{ person { name } }runs through the standard stitching planner, while local data (cursor) and local field resolvers onPersonkeep working as before. Computed fields,@requiresdependencies, batching, and fields from other subschemas use the same type-merging flow as regular delegated results.
10.1.25
18 Jul 2026Only updates dependencies:@graphql-tools/delegate 12.0.20@graphql-tools/batch-delegate 10.0.27@graphql-tools/wrap 11.1.19
10.1.24
13 Jul 2026Fix
@providesso the gateway only requests the provided fields the client actually selected, and stops delegating to the owner subgraph when@providesalready covers the request.Previously, when a subgraph declared
@provides(fields: "...")on a field, the gateway would still:For example with:
# subgraph B (provider) type Query { entity: Entity @provides(fields: "name description") } type Entity @key(fields: "id") { id: ID! name: String! @external description: String! @external }a client query of
{ entity { id name } }would still cause the gateway to ask subgraph B fordescriptionand fetchnameagain from subgraph A (the owner ofEntity).After this fix:
Aliases, direct field selections, fragments, fragment spreads,
@include/@skipdirectives wrapping a@providesfield, and nested@providesselections are preserved without unnecessary owner delegations.
@graphql-tools/stitch@10.1.24
Patch Changes
Fix
@providesso the gateway only requests the provided fields the client actually selected, and stops delegating to the owner subgraph when@providesalready covers the request.Previously, when a subgraph declared
@provides(fields: "...")on a field, the gateway would still:Forward every field listed in
@providesto that subgraph, even when the client never asked for them.After receiving the response, plan additional delegations to the owner subgraph for
@provides-covered fields whenever the providing subgraph declared them as@external, even though the data was already returned.
For example with:
# subgraph B (provider) type Query { entity: Entity @provides(fields: "name description") } type Entity @key(fields: "id") { id: ID! name: String! @external description: String! @external }a client query of
{ entity { id name } }would still cause the gateway to ask subgraph B fordescriptionand fetchnameagain from subgraph A (the owner ofEntity).After this fix:
Only the
@providesfields the client actually selected are forwarded to the providing subgraph (request side).The delegation planner now recognises
@providesdeclarations at every nested level (e.g.@provides(fields: "nested { nestedNested { name description } }")) and@providesdeclarations made via inline fragments on union/interface members (e.g.@provides(fields: "... on Book { title }")), so the gateway no longer round-trips to the owner subgraph for fields that the providing subgraph has already returned.Fragment spreads in the client query are correctly handled when selecting nested
@provides-covered fields. Previously, using a fragment spread (e.g....MyFrag) for nested@externalfields could cause an unnecessary delegation to the owner because selection subtraction compared only the spread name with the explicit@providesfields. The planner now resolves fragment spreads before subtracting provided selections, while preserving the fragment type condition and directives when only part of a fragment remains.
Aliases, direct field selections, fragments, fragment spreads,
@include/@skipdirectives wrapping a@providesfield, and nested@providesselections are preserved without unnecessary owner delegations.
10.1.23
3 Jul 2026Only updates dependencies:@graphql-tools/delegate 12.0.18@graphql-tools/batch-delegate 10.0.25@graphql-tools/wrap 11.1.17
10.1.22
9 Jun 2026Fix
mergeDirectivesoption and default it totrueCustom directive definitions from subschemas were silently dropped from the stitched schema unless
mergeDirectives: truewas explicitly passed tostitchSchemas. This meant a schema like:directive @public on SCHEMA | OBJECT | FIELD_DEFINITION type Query @public { isAnExample: Boolean @public }would stitch into a broken schema where
@publicwas used on types and fields but never defined.The default is now
true, so directive definitions are always collected and retained in the stitched schema, this is the expected behaviour since the merging was partial before this fix (usages got merged, but definitions not).Passing
mergeDirectives: falsenow produces a fully clean result - both directive definitions and all their usages on types, fields, input fields, and enum values are stripped.
10.1.14 – 10.1.218 releases that only update dependencies@graphql-tools/batch-delegate 10.0.24@graphql-tools/delegate 12.0.17@graphql-tools/wrap 11.1.16Show each
- 10.1.215 Jun 2026@graphql-tools/batch-delegate 10.0.24
- 10.1.201 Jun 2026@graphql-tools/delegate 12.0.17@graphql-tools/batch-delegate 10.0.23@graphql-tools/wrap 11.1.16
- 10.1.197 May 2026@graphql-tools/delegate 12.0.16@graphql-tools/batch-delegate 10.0.22@graphql-tools/wrap 11.1.15
- 10.1.1815 Apr 2026@graphql-tools/delegate 12.0.14@graphql-tools/batch-delegate 10.0.20@graphql-tools/wrap 11.1.14
- 10.1.173 Apr 2026@graphql-tools/delegate 12.0.13@graphql-tools/batch-delegate 10.0.19@graphql-tools/wrap 11.1.13
- 10.1.1617 Mar 2026@graphql-tools/delegate 12.0.12@graphql-tools/batch-delegate 10.0.18@graphql-tools/wrap 11.1.12
- 10.1.1516 Mar 2026@graphql-tools/delegate 12.0.11@graphql-tools/batch-delegate 10.0.17@graphql-tools/wrap 11.1.11
- 10.1.1415 Mar 2026@graphql-tools/wrap 11.1.10@graphql-tools/delegate 12.0.10@graphql-tools/batch-delegate 10.0.16
10.1.13
10 Mar 2026Fix redundant extra calls to the same subschema in case of
@canonicalannotation
@graphql-tools/stitch@10.1.13
Patch Changes
Fix redundant extra calls to the same subschema in case of
@canonicalannotation
10.1.11 – 10.1.122 releases that only update dependencies@graphql-tools/delegate 12.0.8@graphql-tools/batch-delegate 10.0.14@graphql-tools/wrap 11.1.8Show each
10.1.10
4 Feb 2026Handle the type merging order correctly with custom labels and percentage labels for progressive override
@graphql-tools/stitch@10.1.10
Patch Changes
Handle the type merging order correctly with custom labels and percentage labels for progressive override
Do not pass
percent(x)labels to the progressive override handlerApply progressive override to the shared root fields
10.1.9
2 Feb 2026Only updates dependencies:@graphql-tools/delegate 12.0.5@graphql-tools/batch-delegate 10.0.11@graphql-tools/wrap 11.1.5
10.1.8
8 Jan 2026Dependencies updates:
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/utils@^11.0.0↗︎ (from^10.10.3, independencies)
10.1.5 – 10.1.73 releases that only update dependencies@graphql-tools/delegate 12.0.3@graphql-tools/batch-delegate 10.0.9@graphql-tools/wrap 11.1.3Show each
- 10.1.77 Jan 2026@graphql-tools/delegate 12.0.3@graphql-tools/batch-delegate 10.0.9@graphql-tools/wrap 11.1.3
- 10.1.63 Dec 2025@graphql-tools/delegate 12.0.2@graphql-tools/batch-delegate 10.0.8@graphql-tools/wrap 11.1.2
- 10.1.51 Dec 2025@graphql-tools/delegate 12.0.1@graphql-tools/batch-delegate 10.0.7@graphql-tools/wrap 11.1.1
10.1.4
1 Dec 2025Ensure key fields propagate correctly for interface/object combinations
Avoid extra
__typenamein the root selectionquery { - __typename hello }
@graphql-tools/stitch@10.1.4
Patch Changes
Ensure key fields propagate correctly for interface/object combinations
Avoid extra
__typenamein the root selectionquery { - __typename hello }
10.1.3
19 Nov 2025Dependencies updates:
@graphql-tools/stitch@10.1.3
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/executor@^1.4.13↗︎ (from^1.4.11, independencies)Updated dependency
@graphql-tools/merge@^9.1.5↗︎ (from^9.1.3, independencies)Updated dependency
@graphql-tools/schema@^10.0.29↗︎ (from^10.0.27, independencies)Updated dependency
@graphql-tools/utils@^10.10.3↗︎ (from^10.10.1, independencies)
10.1.2
7 Nov 2025Dependencies updates:
Dependencies updates:
Dependencies updates:
@graphql-tools/stitch@10.1.2
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/executor@^1.4.11↗︎ (from^1.4.9, independencies)Updated dependency
@graphql-tools/merge@^9.1.3↗︎ (from^9.1.1, independencies)Updated dependency
@graphql-tools/schema@^10.0.27↗︎ (from^10.0.25, independencies)Updated dependency
@graphql-tools/utils@^10.10.1↗︎ (from^10.9.1, independencies)
Dependencies updates:
Updated dependency
@graphql-tools/utils@^10.10.1↗︎ (from^10.10.0, independencies)
Dependencies updates:
Updated dependency
@graphql-tools/executor@^1.4.11↗︎ (from^1.4.10, independencies)Updated dependency
@graphql-tools/merge@^9.1.3↗︎ (from^9.1.2, independencies)Updated dependency
@graphql-tools/schema@^10.0.27↗︎ (from^10.0.26, independencies)
10.1.1
1 Nov 2025Dependencies updates:
Fix Progressive Override to prevent caching on different variations of override
@graphql-tools/stitch@10.1.1
Patch Changes
Dependencies updates:
Updated dependency
@graphql-tools/executor@^1.4.10↗︎ (from^1.4.9, independencies)Updated dependency
@graphql-tools/merge@^9.1.2↗︎ (from^9.1.1, independencies)Updated dependency
@graphql-tools/schema@^10.0.26↗︎ (from^10.0.25, independencies)Updated dependency
@graphql-tools/utils@^10.10.0↗︎ (from^10.9.1, independencies)
Fix Progressive Override to prevent caching on different variations of override
10.1.0
27 Oct 2025Progressive Override for Safer Field Migrations
Introduces Progressive Override, allowing you to safely migrate fields between subgraphs using the
@overridedirective with a label. Control the rollout using custom logic in the gateway (e.g., percentage, headers) or the built-in percent(x) label for gradual, incremental traffic migration.Detailed documentation can be found here.
@graphql-tools/stitch@10.1.0
Minor Changes
Progressive Override for Safer Field Migrations
Introduces Progressive Override, allowing you to safely migrate fields between subgraphs using the
@overridedirective with a label. Control the rollout using custom logic in the gateway (e.g., percentage, headers) or the built-in percent(x) label for gradual, incremental traffic migration.Detailed documentation can be found here.
10.0.2
23 Sep 2025Normalize the subschemas with root types in a custom names like
query_rootinstead ofQuery, then stitch themschema { query: query_root subscription: subscription_root } type Post { id: ID! text: String userId: ID! } type query_root { postById(id: ID!): Post } type subscription_root { postsByUserId(userId: ID!): [Post]! }and
type User { id: ID! email: String } type Query { userById(id: ID!): User }should be stitched as;
type Query { postById(id: ID!): Post userById(id: ID!): User } type Subscription { postsByUserId(userId: ID!): [Post]! } type Post { id: ID! text: String userId: ID! } type User { id: ID! email: String }
10.0.1
15 Sep 2025Dependencies updates:
Patch Changes
Dependencies updates:
Updated dependency
@whatwg-node/promise-helpers@^1.3.2↗︎ (from^1.3.0, independencies)
10.0.0
4 Sep 2025- Breaking
Drop Node 18 support
Least supported Node version is now v20.
Major Changes
- Breaking
Drop Node 18 support
Least supported Node version is now v20.
- 9.x
9.4.29
3 Sep 2025Reading the note…
9.4.28
1 Aug 2025Reading the note…
9.4.27
23 Jul 2025Reading the note…
9.4.26
7 Jul 2025Reading the note…
9.4.25
26 Jun 2025Reading the note…
9.4.24
2 Jun 2025Reading the note…
9.4.23
16 May 2025Reading the note…
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.