Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assertion error due to not ignoring some unsatisfiable branches (#…
…2486) Code was added in #2449 which "optimize" selections by removing unecessary inline fragments and branches that can't be satisfied (when we cross type conditions so that the intersection of types leading here is empty). Unfortunately that code misses some cases of when a branch is impossible, which leads to trying to build a selection set that is invalid and this in turn triggers an assertion error.
- Loading branch information
Sylvain Lebresne
committed
Mar 23, 2023
1 parent
4175093
commit afde315
Showing
3 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@apollo/federation-internals": patch | ||
--- | ||
|
||
Fix assertion error during query planning in some cases where queries has some unsatisfiable branches (a part of the | ||
query goes through type conditions that no runtime types satisfies). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters