[Question] Syntax Errors in onCompleted
causes onError
to occur
#12008
Labels
🏓 awaiting-team-response
requires input from the apollo team
We ran into this in our platform this week and we thought it was interesting. Essentially a syntax error in
onCompleted
caused the JS to runonError
. Here's an example:The Mutation was fine. There was a
200
from the GQL event. We found it interesting that since there was a JS error inonCompleted
, the execution jumped over intoonError
, which made us initially feel like there was a GQL problem. Overall it just felt unintuitive.I imagine there was probably a lot of thought that went into this behavior. Curious your thoughts!
The text was updated successfully, but these errors were encountered: