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

How to tell the difference between missing object and fetch error #106

Closed
stubailo opened this issue Apr 13, 2016 · 1 comment
Closed

How to tell the difference between missing object and fetch error #106

stubailo opened this issue Apr 13, 2016 · 1 comment

Comments

@stubailo
Copy link
Contributor

Per conversation with @martijnwalraven:

If you get a GraphQL error in the response, the data might have some missing fields. The missing fields are represented by null. However, null is also a valid response for any part of a GraphQL query when there is a nullable reference. So it's not possible to reliably determine which parts of the response are missing because of the server error, and which parts actually are not there, and would be null even if there were no error.

This seems like an oversight in GraphQL-JS, and perhaps the GraphQL error spec itself. @helfer have you encountered this? Any ways of getting around it?

@stubailo
Copy link
Contributor Author

This is not possible without changes to GraphQL-JS.

jbaxleyiii pushed a commit that referenced this issue Oct 17, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant