Skip to content

Throwing a regular error in a mutation #1180

Answered by MichalLytek
sklymoshenko asked this question in Q&A
Discussion options

You must be logged in to vote

You can't return { message: err }; because you've declared GraphQL return type is UserSchema.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sklymoshenko
Comment options

Answer selected by sklymoshenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants