Closed joshmedeski closed 3 years ago
@elitan @komninoschat let me know if you have any suggestions on how to code this. I'm thinking of allowing any unique constraint errors to output an appropriate error message like this:
{
"statusCode": 400,
"error": "Bad Request",
"message": "username already exists."
}
Duplicate of https://github.com/nhost/hasura-backend-plus/issues/426
The server will return 500 and logs will be available for HBP.
I'm building an app that uses the
username
custom registration field. I've added a unique constraint on the database but get a general 500 if that unique constraint fails.I'd like to hasura-backend-plus to return an appropriate message like this: