github ardatan/graphql-tools release-1724659530708
August 26, 2024

latest releases: release-1726086017332, @graphql-tools/federation@2.2.10, release-1724948218474...
24 days ago

@graphql-tools/delegate@10.0.20

Patch Changes

  • #6469
    0e87805
    Thanks @User!! - Handle merged selection sets in the computed fields;

    When a selection set for a computed field needs to be merged, resolve that required selection set
    fully then resolve the computed field. In the following case, the selection set for the author
    field in the Post type is merged with the selection set for the authorId field in the
    Comment type.

    type Query {
      feed: [Post!]!
    }
    
    type Post {
      id: ID! @computed(selectionSet: "{ comments { authorId } }")
    }
    
    type Comment {
      id: ID!
      authorId: ID!
    }
    
    type User {
      id: ID!
      name: String!
    }
    type Post {
      id: ID!
      comments: [Comment!]!
    }
    
    type Comment {
      id: ID!
    }

@graphql-tools/federation@2.2.9

Patch Changes

  • #6469
    0e87805
    Thanks @User!! - Handle merged selection sets in the computed fields;

    When a selection set for a computed field needs to be merged, resolve that required selection set
    fully then resolve the computed field. In the following case, the selection set for the author
    field in the Post type is merged with the selection set for the authorId field in the
    Comment type.

    type Query {
      feed: [Post!]!
    }
    
    type Post {
      id: ID! @computed(selectionSet: "{ comments { authorId } }")
    }
    
    type Comment {
      id: ID!
      authorId: ID!
    }
    
    type User {
      id: ID!
      name: String!
    }
    type Post {
      id: ID!
      comments: [Comment!]!
    }
    
    type Comment {
      id: ID!
    }
  • Updated dependencies
    [0e87805]:

    • @graphql-tools/delegate@10.0.20

Don't miss a new graphql-tools release

NewReleases is sending notifications on new releases.