Packages

@graphql-tools/delegate

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

Your version

10.0.23

16 Oct 2024Where 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

  • #6573
    7e2938d
    Thanks @ardatan! - When there are two services like below then the
    following query senty, the gateway tries to fetch id as an extra field because it considers id
    might be needed while this is not correct. This patch avoids any extra calls, and forwards the
    query as is to the 2nd service.

    query {
      viewer {
        booksContainer(input: $input) {
          edges {
            cursor
            node {
              source {
                # Book(upc=)
                upc
              }
            }
          }
          pageInfo {
            endCursor
          }
        }
      }
    }
    type Book @key(fields: "id") @key(fields: "upc") {
      id: ID!
      upc: ID!
    }
    type BookContainer { # the type that is used in a collection
      id: ID!
      # ... other stuff here
      source: Book!
    }
    
    type Book @key(fields: "upc") {
      upc: ID!
    }
    
    type Query {
      viewer: Viewer
    }
    
    type Viewer {
      booksContainer: BooksContainerResult
    }
    
    type BooksContainerResult {
      edges: [BooksContainerEdge!]!
      pageInfo: PageInfo!
    }
    
    type BooksContainerEdge {
      node: BookContainer!
      cursor: String!
    }
    
    type PageInfo {
      endCursor: String
    }

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.