Packages

@graphql-tools/delegate

12.3.4 · 12 Nov 2026MIT15.8M / weekRepositorynpmAtom feed

Your version

12.1.0

20 Jul 2026Where it was published

12.3.4 is the newest release of 12.x.

In short

1 new1 fixed

Release note

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

@graphql-tools/delegate@12.1.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

  • defaultMergedResolver now falls back to the literal field name when an external object does not have the requested response key

    Plain resolver data merged into an external object is keyed by field name, so an aliased request used to resolve to null even though the value was there:

    {
      person {
        fullName: name
      }
    }
    // merged object carries resolver data by field name
    { id: '1', name: 'Local' }

    Previously fullName was null because only the alias was looked up. Now it resolves to 'Local' by field name, matching plain graphql-js behavior. When the response key is present (e.g. the field came from a subschema), it is still preferred.

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.