Skip to content

June 11, 2024

Compare
Choose a tag to compare
@theguild-bot theguild-bot released this 11 Jun 06:28
· 252 commits to master since this release
2d7402e

@graphql-tools/federation@2.0.1

Patch Changes

  • #6238
    0f7059b
    Thanks @ardatan! - Merge the elements of the lists if the root field
    is shared across different subgraphs

    type Query {
      products: [Product] # If this field is returned by multiple subgraphs, the elements of the lists will be merged
    }
  • Updated dependencies
    [0f7059b]:

    • @graphql-tools/utils@10.2.2

@graphql-tools/utils@10.2.2

Patch Changes

  • #6238
    0f7059b
    Thanks @ardatan! - If the given objects are arrays with the same
    length, merge the elements.

    const a = [{ a: 1 }, { b: 2 }]
    const b = [{ c: 3 }, { d: 4 }]
    const result = mergeDeep(a, b) // [{ a: 1, c: 3 }, { b: 2, d: 4 }]