You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (errors) {
return res.status(400).json(errors[0])
}
This doesn't send the code received in the errors[0].extensions object and only sends the message. Ideally the codegen should send back the error code as it is to the client.
The codegen for error handling looks like this:
This doesn't send the
code
received in theerrors[0].extensions
object and only sends the message. Ideally the codegen should send back the error code as it is to the client.The updated error handling would look like this:
The text was updated successfully, but these errors were encountered: