-
Notifications
You must be signed in to change notification settings - Fork 257
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gateway): Handle
@external
validation edge case for interface i…
…mplementors (apollographql/apollo-server#4284) One edge case on the validation of externals being used is when concrete types need to be defined in multiple services for an interface to be returned as a type for a field. To return an interface, you need to defined its possible implementations to let the schema know what all it could support but you also need to mark its fields as external (at least the ones you can resolve) so that you don't try and take over ownership of an entities fields. The current implementation doesn't take this into account so you fail validation and can't compose the graph. Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com> Apollo-Orig-Commit-AS: apollographql/apollo-server@abe72d4
- Loading branch information
1 parent
bb95ebf
commit 3ea6b00
Showing
3 changed files
with
125 additions
and
1 deletion.
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