Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(stitching): avoid duplicate directives #1665

Merged
merged 1 commit into from Jun 21, 2020
Merged

Conversation

yaacovCR
Copy link
Collaborator

@yaacovCR yaacovCR commented Jun 21, 2020

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.

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.
@theguild-bot
Copy link
Collaborator

theguild-bot commented Jun 21, 2020

The latest changes of this PR are available as alpha in npm: 6.0.11-alpha-bff7610.0

Quickly update your package.json by running:

npx match-version @graphql-tools 6.0.11-alpha-bff7610.0

@yaacovCR yaacovCR merged commit bff7610 into master Jun 21, 2020
@yaacovCR yaacovCR deleted the fix-duplicate-directives branch June 21, 2020 09:58
@ardatan ardatan added the bugfix label Jun 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

duplicate directives when merging schemas since version 5.0.0
3 participants