-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(federation): correct order of
@skip
and @include
conditions o…
…n the same selection PR #6120 was the wrong solution. JS doesn't actually maintain the order of the conditions, like I thought. Instead, it always puts `@skip` first and `@include` second, the opposite of what Rust was doing. The queries I was testing with just happened to pass in #6120. This changes the implementation of `Conditions::from_directives` to pick the directives out manually instead of iterating. Technically, this does two iterations of the directive list...but, the code is a bit simpler, I think.
- Loading branch information
1 parent
644d903
commit 072b149
Showing
2 changed files
with
65 additions
and
27 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
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