Packages

@graphql-tools/delegate

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

Your version

12.0.3

7 Jan 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.3

Patch Changes

  • Delegate variable values correctly;

    When delegating requests with variables that include nested arrays, ensure that null values are preserved and passed correctly to the subschema. This fix addresses issues where null values in nested arrays were not handled properly during delegation.

    Let's say we have the following schema;

    makeExecutableSchema({
        typeDefs: /* GraphQL */ `
            type Query {
                test(input: InputType!): [String!]
            }
            input InputType {
                value: [String!]
            }
        `,
        resolvers: {
            Query: {
                test: (_, args) => {
                    // Returns the incoming variable value
                    return args.input.value;
                },
            },
        }
    });

    When delegating a query with a variable like:

    {
        "query": "query Test($value: [String!]) { test(input: { value: $value } ) }",
        "variables": { "value": null }
    }

    And the result was

    {
        "data": {
            "test": []
        }
    }

    But with this fix, the result will correctly be:

    {
        "data": {
            "test": null
        }
    }

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.