Skip to content

Programmatically add multiple errors along with partial data #3895

Answered by judocode
judocode asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure if this is available via the docs, but I found calling context.add_error https://www.rubydoc.info/github/rmosolgo/graphql-ruby/GraphQL%2FQuery%2FContext%2FFieldResolutionContext:add_error does the trick

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by judocode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant