Packages

@graphql-tools/delegate

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

Your version

12.0.0

major1 Dec 2025Where it was published

12.3.4 is the newest release of 12.x.

In short

1 breaking2 fixed

  • Breaking

    Breaking changes in createRequest function;

Release note

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

@graphql-tools/delegate@12.0.0

Major Changes

  • Breaking

    Breaking changes in createRequest function;

    • No more sourceParentType, sourceFieldName, variableDefinitions, variableValues and targetRootValue

    • targetRootValue has been renamed to rootValue

    • targetSchema is a required option now and args is also accepted as a map of the arguments of the target field

    • fragments is now an array of FragmentDefinitionNode instead of a record { [fragmentName: string]: FragmentDefinitionNode }

    Breaking changes in delegateRequest and delegateToSchema functions;

    • No more transformedSchema option, it has been renamed to targetSchema

    • targetSchema is a required option now

Patch Changes

  • Avoid extra __typename in the root selection

    query {
    - __typename
      hello
    }
  • Handle leftovers recursively but in async
    Fixes requires-circular test suite's second case on federation audit repository

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.