Cannot return null for non-nullable field when throwing error #1568
Unanswered
erikmellum
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the issue
When I throw an error in a mutation, the custom error is being discarded in favor of "cannot return null for non-nullable field". I suspect I am doing something wrong, but I do not see in the documentation what the problem is. I am hoping that some guidance can be provided, with hopes that this will also help someone else in the future.
When I run this, the graphql error formatter is seeing:
'Cannot return null for non-nullable field Mutation.createTimeOffRequest.'
Beta Was this translation helpful? Give feedback.
All reactions