Skip to content

Add path to resolver errors #86

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

Closed
tonyghita opened this issue May 12, 2017 · 0 comments
Closed

Add path to resolver errors #86

tonyghita opened this issue May 12, 2017 · 0 comments

Comments

@tonyghita
Copy link
Member

tonyghita commented May 12, 2017

The request to add path to errors has been merged into the specification.

If an error can be associated to a particular field in the GraphQL result, it must contain an entry with the key path that details the path of the response field which experienced the error. This allows clients to identify whether a null result is intentional or caused by a runtime error.

This field should be a list of path segments starting at the root of the response and ending with the field associated with the error. Path segments that represent fields should be strings, and path segments that represent list indices should be 0-indexed integers. If the error happens in an aliased field, the path to the error should use the aliased name, since it represents a path in the response, not in the query.

The new specification is still unreleased, but it wouldn't hurt to start thinking about how we may implement this functionality.

tinnywang pushed a commit to tinnywang/graphql-go that referenced this issue Dec 13, 2018
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

No branches or pull requests

1 participant