Skip to content

Improves error message for misspelled override - #2181

Merged
pcmanus merged 2 commits into
apollographql:mainfrom
pcmanus:override-hint
Oct 12, 2022
Merged

Improves error message for misspelled override#2181
pcmanus merged 2 commits into
apollographql:mainfrom
pcmanus:override-hint

Conversation

@pcmanus

@pcmanus pcmanus commented Oct 4, 2022

Copy link
Copy Markdown
Contributor

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

netlify Bot commented Oct 4, 2022

Copy link
Copy Markdown

👷 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

codesandbox-ci Bot commented Oct 4, 2022

Copy link
Copy Markdown

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