**Updated below to issue with micro server *
When a mutation error occurs a JSON reponse with an error object is returned - the client can parse and handle this.
{data: {requestToken: null},errors: [{message: "Unknown User"}]
However, when a schema error or request error occurs, I get a string response which cannot be parsed client side.
HttpQueryError: {"errors":[{"message":"Variable.....}
This is using apollo-server-micro how should I catch these errors and provide a graceful message back to the client which could aide in debugging?
**Updated below to issue with micro server *
When a mutation error occurs a JSON reponse with an error object is returned - the client can parse and handle this.
{data: {requestToken: null},errors: [{message: "Unknown User"}]
However, when a schema error or request error occurs, I get a string response which cannot be parsed client side.
HttpQueryError: {"errors":[{"message":"Variable.....}
This is using apollo-server-micro how should I catch these errors and provide a graceful message back to the client which could aide in debugging?