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 main, this PR will be updated.
Releases
@apollo/[email protected]
Patch Changes
Modifies the type for the argument of the
@requiresScopes
from[federation__Scope!]!
to[[federation__Scope!]!]!
. (#2738)The
@requiresScopes
directives has been pre-emptively introduced in 2.5.0 to support an upcoming Apollo Routerfeature around scoped accesses. The argument for
@requiresScopes
in that upcoming feature is changed to accommodate anew semantic. Note that this technically a breaking change to the
@requiresScopes
directive definition, but as thefull feature using that directive has been released yet, this directive cannot effectively be used and this should have
no concrete impact.
Updated dependencies [
4b9a512b
,c6e0e76d
,1add932c
,6f1fddb2
]:@apollo/[email protected]
Patch Changes
Fix execution error in some cases where aliases are used and some values are
null
. (#2716)The error would manifest itself as an
INTERNAL_SERVER_ERROR
with a message of the formCannot read properties of null
.Updated dependencies [
4b9a512b
,c6e0e76d
,1add932c
,6f1fddb2
]:@apollo/[email protected]
Patch Changes
Modifies the type for the argument of the
@requiresScopes
from[federation__Scope!]!
to[[federation__Scope!]!]!
. (#2738)The
@requiresScopes
directives has been pre-emptively introduced in 2.5.0 to support an upcoming Apollo Routerfeature around scoped accesses. The argument for
@requiresScopes
in that upcoming feature is changed to accommodate anew semantic. Note that this technically a breaking change to the
@requiresScopes
directive definition, but as thefull feature using that directive has been released yet, this directive cannot effectively be used and this should have
no concrete impact.
Fix potential assertion error for named fragment on abstract types when the abstract type does not have the same (#2725)
possible runtime types in all subgraphs.
The error manifested itself during query planning with an error message of the form
Cannot normalize X at Y ...
.Expands over-eager merging of field fix to handle
@defer
consistently (#2720)The previously committed #2713 fixed an issue introduced by
#2387, ensuring that querying the same field with different
directives applications was not merged, similar to what was/is done for fragments. But the exact behaviour slightly
differs between fields and fragments when it comes to
@defer
in that for fragments, we never merge 2 similar fragmentswhere both have
@defer
, which we do merge for fields. Or to put it more concretely, in the following query:the 2
... on X @defer
are not merged, resulting in 2 deferred sections that can run in parallel. But following#2713, query:
will merge both
x @defer
, resulting in a single deferred section.This fix changes that later behaviour so that the 2
x @defer
are not merged and result in 2 deferred sections,consistently with both 1) the case of fragments and 2) the behaviour prior to
#2387.
@apollo/[email protected]
Patch Changes
slightly generalize an existing heuristic of the query planner, allowing it to ignore some known inefficient options
earlier in its process. When this optimisation can be used, this yield faster query plan computation, but by reducing
the number of plans to be consider, this can sometimes prevent the planner to degrade it's output when it consider
there is too many plans to consider, which can result in more optimal query plans too.
4b9a512b
,c6e0e76d
,1add932c
]:@apollo/[email protected]
Patch Changes
Fix potential assertion error for named fragment on abstract types when the abstract type does not have the same (#2725)
possible runtime types in all subgraphs.
The error manifested itself during query planning with an error message of the form
Cannot normalize X at Y ...
.More aggressive ignoring of indirect paths from root types when a more direct alternative exists. This optimisation (#2669)
slightly generalize an existing heuristic of the query planner, allowing it to ignore some known inefficient options
earlier in its process. When this optimisation can be used, this yield faster query plan computation, but by reducing
the number of plans to be consider, this can sometimes prevent the planner to degrade it's output when it consider
there is too many plans to consider, which can result in more optimal query plans too.
Updated dependencies [
4b9a512b
,c6e0e76d
,1add932c
,6f1fddb2
]:@apollo/[email protected]
Patch Changes
4b9a512b
,c6e0e76d
,1add932c
]:[email protected]