Skip to content

Does anyone know how to return errors from resolvers? #1077

Discussion options

You must be logged in to vote

Hey @special-character, sorry for the late response. I believe the only way to get a 200 response while returning an error is to model your error at the GraphQL schema level.

There's a great article talking about that here https://medium.com/@sachee/200-ok-error-handling-in-graphql-7ec869aec9bc

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@special-character
Comment options

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