github ardatan/graphql-tools release-1723045008485
August 07, 2024

latest releases: release-1731080717646, @graphql-tools/url-loader@8.0.14, @graphql-tools/prisma-loader@8.0.16...
3 months ago

@graphql-tools/delegate@10.0.18

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
    }
  • Updated dependencies
    [a867bbc]:

    • @graphql-tools/executor@1.3.1
    • @graphql-tools/utils@10.3.4

@graphql-tools/executor@1.3.1

Patch Changes

  • #6420
    a867bbc
    Thanks @ardatan! - mapAsyncIterator now accepts AsyncIterable

  • Updated dependencies
    [a867bbc]:

    • @graphql-tools/utils@10.3.4

@graphql-tools/utils@10.3.4

Patch Changes

Don't miss a new graphql-tools release

NewReleases is sending notifications on new releases.