Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@graphql-tools/[email protected]
Patch Changes
#6134
a83da08
Thanks @User! - Ignore unmerged fieldsLet's say you have a gateway schema like in the bottom, and
id
is added to the query, only if theage
is requested;But the following will be transformed;
Into
#6150
fc9c71f
Thanks @ardatan! - If there are some fields depending on a nested type resolution, wait until it gets resolved then resolve the rest.See packages/federation/test/fixtures/complex-entity-call example for more details.
You can see
ProductList
needs some fields fromProduct
to resolvefirst
@graphql-tools/[email protected]
Patch Changes
#6141
cd962c1
Thanks @ardatan! - When the gateway receives the query, now it chooses the best root field if there is the same root field in different subgraphs.For example, if there is
node(id: ID!): Node
in all subgraphs but one implementsUser
and the other implementsPost
, the gateway will choose the subgraph that implementsUser
orPost
based on the query.If there is a unresolvable interface field, it throws.
See this supergraph and the test query to see a real-life example
#6143
04d5431
Thanks @ardatan! - Implement interface objects supportUpdated dependencies [
a83da08
,fc9c71f
,cd962c1
]:@graphql-tools/[email protected]
Patch Changes
#6134
a83da08
Thanks @User! - Ignore unmerged fieldsLet's say you have a gateway schema like in the bottom, and
id
is added to the query, only if theage
is requested;But the following will be transformed;
Into
#6150
fc9c71f
Thanks @ardatan! - If there are some fields depending on a nested type resolution, wait until it gets resolved then resolve the rest.See packages/federation/test/fixtures/complex-entity-call example for more details.
You can see
ProductList
needs some fields fromProduct
to resolvefirst
#6141
cd962c1
Thanks @ardatan! - When the gateway receives the query, now it chooses the best root field if there is the same root field in different subgraphs.For example, if there is
node(id: ID!): Node
in all subgraphs but one implementsUser
and the other implementsPost
, the gateway will choose the subgraph that implementsUser
orPost
based on the query.If there is a unresolvable interface field, it throws.
See this supergraph and the test query to see a real-life example
Updated dependencies [
a83da08
,fc9c71f
]:[email protected]
Patch Changes
a83da08
,fc9c71f
,cd962c1
,04d5431
]: