I have been reviewing the Apollo documentation but I do not see information of how to go about handling server errors in the Apollo client.
For example, suppose that the server either:
- Times out
- Becomes unreachable
- Unexpectedly fails
How should this be handled in the client? Apollo currently fails with errors such as:
Unhandled (in react-apollo) Error: GraphQL error: Cannot ...
I'd like to avoid this happening and handling these errors. How can I do so using React Apollo?
For reference:
I am currently using React-Apollo and Redux.