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

feat(graphql): Throw an error when multiple resolvers define the same field #2423

Merged
merged 4 commits into from Sep 30, 2022

Conversation

Davide-Gheri
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

Closes #2143

PR Type

What kind of change does this PR introduce?

  • Feature

What is the current behavior?

Issue Number: #2134

What is the new behavior?

A new buildSchemaOptions field noDuplicateFields is added.
If it is set to true, an error is thrown when defining a Query/Mutation field multiple times

Does this PR introduce a breaking change?

  • Yes
  • No

@kamilmysliwiec
Copy link
Member

Fantastic PR, thank you! Left a few very minor comments

@kamilmysliwiec kamilmysliwiec merged commit 2de3996 into nestjs:master Sep 30, 2022
@kamilmysliwiec
Copy link
Member

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on duplicate queries/mutations defined in multiple resolvers
2 participants