release-1724659530708
版本发布时间: 2024-08-26 16:05:31
ardatan/graphql-tools最新发布版本:release-1727374913368(2024-09-27 02:21:53)
@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 thePost
type is merged with the selection set for theauthorId
field in theComment
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 thePost
type is merged with the selection set for theauthorId
field in theComment
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