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

Report schema location for invalid types #3924

Closed
wants to merge 1 commit into from

Conversation

captbaritone
Copy link
Contributor

@captbaritone captbaritone commented May 25, 2022

With Client Edges, if you specify an @edge_to with an invalid type name we were previously reporting an error at a generated location.

Screen Shot 2022-05-25 at 8 39 24 AM

This also ensures we provide a correct error location when you type a field type in a client schema extension.

Test Plan

Create a Relay Resolver with @edge_to Foo and see an error message that points to the correct location:

Screen Shot 2022-05-25 at 8 28 44 AM

@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

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.

2 participants