apollo-link-json-api icon indicating copy to clipboard operation
apollo-link-json-api copied to clipboard

Treat 422 http errors as graphql errors

Open ins429 opened this issue 6 years ago • 0 comments

I think 422 http errors should be treated as graphql errors. Right now if there's a 422 http error then it's treated as networkError, but instead we probably want it as graphQLErrors so the error can be gracefully handled.

Probably safe to check if the response has errors field to normalize the errors and move the operation forward.

Screen Shot 2019-06-14 at 1 12 20 PM

ins429 avatar Jun 14 '19 20:06 ins429