-
Hello, my backend sends customized formatted non standardized apollo exceptions, for example like this: {
"statusCode": 400,
"errors": [
{
"property": "email",
"children": [],
"constraints": {
"isEmail": "Email must be an email"
}
},
{
"property": "password",
"children": [],
"constraints": {
"matches": "Password must contain at least one number, one uppercase letter, one lowercase letter and one of the special characters (@ and _).",
"minLength": "Password with value: \"123455\" needs to be at least 8 characters"
}
}
],
"timestamp": "2022-04-17T15:32:14+02:00",
"ip": "::1"
} Is there way I can tell the client to use custom exception formatter? |
Beta Was this translation helpful? Give feedback.
Answered by
budde377
Apr 23, 2022
Replies: 1 comment 1 reply
-
Assuming that you're using |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
budde377
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming that you're using
HttpLink
, you can use custom error parsing by implementing your own version ofResponseParser
(here) and pass this to the link.