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 #46
Comments
I plan on fixing this in #45. |
Great yes. It's actually a good idea to try parsing it. The only concern is if we try parsing an incomplete result it can lead to type errors because some parse assumptions might be broken. |
Yes, that is the plan. I will attempt to parse data always, but it will become a result. Then when I go to unwrap the result, in the error case we will need to check that there is not already an error because we do not want to override the real error with a parse error. |
@mattdamon108 I'm not sure how urgent your situation is or whether changing your error policy fixed things, but this should now be fixed in #49 if you need it. I've published under |
@jeddeloh Sorry for my late response. Please no hurry. Actually, I decided to make a workaround for the issue for a while. I changed the response type I'll look forward to the changes of |
This should be handled (attempting to parse partial data and returning a result instead of throwing exceptions) in v1.0.0-beta.0 |
To open this issue here.. teamwalnut/graphql-ppx#202
The text was updated successfully, but these errors were encountered: