Open sami1riaz opened 2 years ago
I checked the GraphQL Django Auth docs and it seems like they don't have status codes implemented. Would it be enough to check the success
variable in the response to see whether the query was successful or not? e.g. registration query
{
"data": {
"register": {
"success": true,
"errors": null
}
}
}
@sami1riaz I added some handling. of backend error messages for the changing of email functionality in https://github.com/pledge4future/WePledge/pull/174/commits/3027e687a7a1692fa944ff5fb1506faf6325230f. If you looking for some inspiration on how to deal with this problem :)
There are some validation scenarios that cannot be dealt with formik and require the proper graphql error message to be displayed on the front end: