I would suggest throwing an Exception or Error here, which will be formatted by lighthouse according to the GraphQL spec, which would help in a frontend app that only responds to this errors object to show errors by default. Currently I'd have to add a custom front-end handler for this use case to show feedback to the user.
When sending the reset password e-mail fails, currently the following JSON response is sent back as graphql data:
I would suggest throwing an Exception or Error here, which will be formatted by lighthouse according to the GraphQL spec, which would help in a frontend app that only responds to this errors object to show errors by default. Currently I'd have to add a custom front-end handler for this use case to show feedback to the user.