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

Improves error message for misspelled override #2181

Merged
merged 2 commits into from
Oct 12, 2022

Conversation

pcmanus
Copy link
Contributor

@pcmanus pcmanus commented Oct 4, 2022

When mispelling the from of an @override, one can easily run into an error about the field needing to be "shareable", which doesn't help locate the actual problem easily. This patch detect this situation and provide an additional hint in the error message to hopefully make the root cause easier to locate.

@netlify
Copy link

netlify bot commented Oct 4, 2022

👷 Deploy request for apollo-federation-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 23fc408

@pcmanus pcmanus self-assigned this Oct 4, 2022
@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 4, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Sylvain Lebresne added 2 commits October 12, 2022 10:32
When mispelling the `from` of an `@override`, one can easily run into an
error about the field needing to be "shareable", which doesn't help
locate the actual problem easily. This patch detect this situation and
provide an additional hint in the error message to hopefully make
the root cause easier to locate.
@pcmanus pcmanus merged commit f958fb9 into apollographql:main Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants