Packages

@graphql-tools/delegate

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

Your version

10.0.18

7 Aug 2024Where it was published

10.2.23 is the newest release of 10.x.

In short

2 fixed3 internal

Release note

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

Patch Changes

  • #6420
    a867bbc
    Thanks @ardatan! - dependencies updates:

  • #6420
    a867bbc
    Thanks @ardatan! - Pass operation directives correctly to the
    subschema;

    query {
      hello @someDir
    }
  • #6418
    da93c08
    Thanks @ardatan! - Fix extra inline fragments for all abstract types
    in the upstream schema call

    If there are two subschemas like below, the final Node interface is implemented by both Oven
    and Toaster while they are not implemented in both schemas. In this case the query
    { products { id ... on Node { id } } } will need to be transformed to
    { products { id ... on Oven { id } ... on Node { id } } } for the first subschema. But
    previously the query planner was automatically creating inline fragments for all possible types
    which was not optimal. Now it adds inline fragments only if this case is seen.

    type Query {
      products: [Product]
    }
    
    union Product = Oven | Toaster
    
    interface Node {
      id: ID!
    }
    
    type Oven {
      id: ID!
    }
    
    type Toaster implements Node {
      id: ID!
      warranty: Int
    }

    And another one like below;

    interface Node {
      id: ID!
    }
    
    type Oven implements Node {
      id: ID!
      warranty: Int
    }

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.