-
-
Notifications
You must be signed in to change notification settings - Fork 564
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
Error Handling #29
Comments
There are several things to say about this:
Some clients like Relay (and GraphiQL in future) - will expect errors in this form to assist developers in debugging. But if you want to use custom errors in your app logic then you need to format errors yourself. Use As for hierarchy of errors - there is probably no easy way to reconstruct it right now (in theory this is possible with ASTs traversing and line/column matching, but not easy). I will likely add tools to make it easier one day, but no timeframes yet. Also if you define custom error formatting - keep in mind that |
I have been looking around at the source code and haven't come across a way to do this yet, so I figured I would reach out. I am trying to make multiple requests such as this:
Now what I want to do is cause an error on just one of those queries and allow the other to continue. So ideally it would be nice if we could find out where the error was that way we could key the
errors
array like this:Is there something I am missing here or is this really not possible to see which query threw the error right now?
The text was updated successfully, but these errors were encountered: