How to make urql throw an error when there is an error? #1436
Answered
by
kitten
thehappycoder
asked this question in
Q&A
-
I know graphql response could be partially erroneous but still need it to throw. Here is what I am doing for now:
|
Beta Was this translation helpful? Give feedback.
Answered by
kitten
Mar 8, 2021
Replies: 1 comment
-
If you need to reject the promise then that's exactly what we recommend; choose the error condition yourself and throw since that replaces any other option or configuration which would make it less intuitive |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kitten
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you need to reject the promise then that's exactly what we recommend; choose the error condition yourself and throw since that replaces any other option or configuration which would make it less intuitive