Skip to content

Releases: ardatan/graphql-tools

August 12, 2024

12 Aug 00:01
1657093
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Minor Changes

August 11, 2024

11 Aug 23:54
e6ea454
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Patch Changes

@graphql-tools/[email protected]

Patch Changes

@graphql-tools/[email protected]

Patch Changes

@graphql-tools/[email protected]

Minor Changes

  • b8bf584
    Thanks @ardatan! - Introduce `getDirectiveExtensions` and refactor
    directive handling in the extensions

August 08, 2024

08 Aug 11:51
7e2bb32
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Patch Changes

  • dbb0516
    Thanks @ardatan! - If there are repeated computed fields like below,
    project the data for the computed fields for each fields and merge them correctly. And if they
    are array as in userOrders, merge them by respecting the order (the second one can have price
    maybe).

    type UserOrder @key(fields: "id") {
      id: ID!
      status: String!
      price: Int!
    }
    
    type User @key(fields: "id") {
      id: ID!
      userOrders: [UserOrder!] @external
      totalOrdersPrices: Int @requires(fields: "userOrders { id }")
      aggregatedOrdersByStatus: Int @requires(fields: "userOrders { id }")
    }

August 07, 2024

07 Aug 15:36
05c6121
Compare
Choose a tag to compare

@graphql-tools/[email protected]

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/[email protected]

Patch Changes

@graphql-tools/[email protected]

Patch Changes

August 05, 2024

05 Aug 20:10
e079a77
Compare
Choose a tag to compare

[email protected]

Patch Changes

@graphql-tools/[email protected]

Patch Changes

August 03, 2024

03 Aug 14:39
fba464b
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Patch Changes

@graphql-tools/[email protected]

Patch Changes

@graphql-tools/[email protected]

Patch Changes

August 01, 2024

01 Aug 14:00
396a1a7
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Patch Changes

  • #6403
    3803897
    Thanks @ardatan! - Cleanup extra fields, empty inline fragments and
    duplicate __typename fields

@graphql-tools/[email protected]

Patch Changes

July 31, 2024

31 Jul 08:16
77866ec
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Patch Changes

  • 0d203ab
    Thanks @ardatan! - Support @requires with arguments like
    @requires(fields: "price(currency: 'USD')")

July 30, 2024

30 Jul 16:54
1f6b2fa
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Patch Changes

July 30, 2024

30 Jul 16:33
9b10c1f
Compare
Choose a tag to compare

@graphql-tools/[email protected]

Patch Changes

  • 63cab60
    Thanks @ardatan! - Use type definition merger instead of
    `concatAST` to merge type definitions for creating a subschema for Federation