Packages

@graphql-tools/delegate

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

Your version

12.0.7

13 Feb 2026Where it was published

12.3.4 is the newest release of 12.x.

In short

1 fixed

Release note

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

@graphql-tools/delegate@12.0.7

Patch Changes

  • Respect existing variable definitions from the gateway request;

    1. If the argument uses a variable definition on the gateway request, keep and re-use it as-is.

    query ($var1: String = "default") {
      rootField(arg1: $var1)
    }
    1. If the argument does not use a variable definition on the gateway request, create a new variable definition for it and make sure it does not conflict with any existing variable definitions on the gateway request, because the gateway request can have variables that have nothing to do with the delegated argument.

    query ($arg1: String = "default") {
      rootField(arg1: 2) {
        someField(arg2: $arg1)
      }
    }

    In that case it should be delegated as:

    query ($arg1: String = "default", $rootField_arg1: String = "default") {
      rootField(arg1: $rootField_arg1) {
        someField(arg2: $arg1)
      }
    }

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.