Client Errors
Errors
The default error handling is that any error (including {"errors": [...]}
in your GraphQL response) makes the whole query in error. If you rather want the query to be considered valid, you can update the parsing logic by providing a custom makeRequest
to your Client
.
Error types
NetworkError
: network isn't reachableTimeoutError
: request timeoutBadStatusError
: request status is not in the valid range (>= 200
&&< 300
)EmptyResponseError
: response was emptyInvalidGraphQLResponseError
: error parsing the payloadGraphQLError[]
: the GraphQL payload returned errors