Packages

@graphql-tools/stitch

10.4.4 · 12 Nov 2026MIT546k / weekRepositorynpmAtom feed

Your version

10.2.0

20 Jul 2026Where it was published

10.4.4 is the newest release of 10.x.

In short

1 new1 fixed3 internal

Release note

The section about @graphql-tools/stitch of a note shared by several packages.

@graphql-tools/stitch@10.2.0

Minor Changes

  • Automatically resolve plain merged-type references returned by local stitching resolvers

    Local fields introduced through typeDefs or resolvers are wrapped by stitchSchemas. 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, @requires dependencies, batching, nested entities, and fields owned by other subschemas.

Patch Changes

  • Fields that are not provided by any subschema (added through typeDefs or resolvers) can now return partial objects of merged types; the missing fields are resolved from the owning subschema automatically

    type 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, person had to be resolved manually even though the stitched schema knows Person and its keys. Now the key is enough: { person { name } } runs through the standard stitching planner, while local data (cursor) and local field resolvers on Person keep working as before. Computed fields, @requires dependencies, batching, and fields from other subschemas use the same type-merging flow as regular delegated results.

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.