Have to show the graphql error returned from the server to the user...

the message also showing GraphQL Error:. How to remove that?
How do you catch the error?
finally got what I want.
How did you do?
Try digging into the error a bit further @Kocal – there's more data that comes along with the object, and some of that data is a better error message. Here's my solution:
error.graphQLErrors.forEach(err => console.log(err.message))
@Kocal use object destructuring method.....
const { graphQLErrors, networkError } = err;
No need to be condescending, I'm just asking how did you resolve your problem in case of someone is having the same issue and seeking for a solution :slightly_smiling_face:
Most helpful comment
No need to be condescending, I'm just asking how did you resolve your problem in case of someone is having the same issue and seeking for a solution :slightly_smiling_face: