accounts icon indicating copy to clipboard operation
accounts copied to clipboard

Throw specific GraphQL errors

Open lorensr opened this issue 5 years ago • 0 comments

I think this type of error should not be classified as an internal server error:

image

It should have code: "UNAUTHENTICATED", which you get by throw new AuthenticationError(). There's also ForbiddenError, UserInputError and custom error types:

https://www.apollographql.com/docs/apollo-server/features/errors.html

lorensr avatar Jul 23 '18 00:07 lorensr