-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gateway): merge selection sets of
@requires
fields (apollograph…
…ql/apollo-server#4064) Previously, it was possible for the gateway to build and issue queries for resolving fields that resembled the following: ```graphql { product { id } product { price } } ``` In the above example, the second selection set will take precedence and the first ignored, meaning the query _ought_ to be: ```graphql { product { id price } } ``` This is accomplished in this PR by merging the selection sets recursively. fixes apollographql/apollo-server#3848 Co-authored-by: Lenny Burdette <lennyburdette@gmail.com> Apollo-Orig-Commit-AS: apollographql/apollo-server@3cdcd06
- Loading branch information
Showing
5 changed files
with
290 additions
and
22 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
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
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