github ardatan/graphql-tools release-1723117870341
August 08, 2024

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

@graphql-tools/federation@2.2.5

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 }")
    }

Don't miss a new graphql-tools release

NewReleases is sending notifications on new releases.