Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stitching): avoid duplicate directives (#1665)
Fixes #1656. Later directives with the same name should override earlier directives rather than causing an error. Directives with the same names from a later subschema will override an earlier subschema. Directives from typedefs will override both. Mixing of legacy schemas argument and newer subschemas, typeDefs, and types arguments should respect this same order. We can consider adding onDirectiveConflict option to match onTypeConflict for customization.
- Loading branch information
Showing
3 changed files
with
45 additions
and
23 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