Packages

@graphql-tools/delegate

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

Your version

10.2.10

20 Jan 2025Where it was published

10.2.23 is the newest release of 10.x.

In short

1 fixed

Release note

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

Patch Changes

  • While creating a delegation request for the subschema, an selection set should be spreaded on the union type field correctly.

    In case of the following schema;

    type Query {
      foo: Foo
    }
    
    union Foo = Bar | Baz
    
    type Bar {
      id: ID!
      name: String
      age: Age
    }
    
    type Age {
      years: Int
      months: Int
    }
    
    type Baz {
      id: ID!
      name: Name
      age: Int
    }
    
    type Name {
      first: String
      last: String
    }

    If the operation is generated as following;

    query {
      foo {
        id
        name
        age {
          years
          months
        }
      }
    }

    It should be spreaded on the union type field correctly as following;

    query {
      foo {
        ... on Bar {
          id
          age {
            years
            months
          }
        }
        ... on Baz {
          id
          name {
            first
            last
          }
        }
      }
    }

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.