4 ms·
That part of GQL drives me nuts. How the heck do people do error handling on the frontend with API requests through GQL? Instead of `try catch`, do you do `if (
by reidjs 5y ago
That part of GQL drives me nuts. How the heck do people do error handling on the frontend with API requests through GQL? Instead of `try catch`, do you do `if (response.error) {}`?
- samsonradu 5y agoYes, can be handled with middleware (interceptors) that throw the `response.error`