Partial Results #1221
Unanswered
andresmonc
asked this question in
Q&A
Partial Results
#1221
Replies: 1 comment
-
|
You can return a DataFetcherResult from your datafetcher with the custom error as described here: https://www.graphql-java.com/documentation/execution#returning-data-and-errors |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello - I'm trying to figure out how I could return partial results as well as errors.
Imagine the method below is exposed to update greetings
now in the underlying service method we loop through the id's in the list and attempt to update each one individually
Currently if I throw an exception any partial results are thrown away and only the exception is returned. Is there any way to return both partial results and errors?
Beta Was this translation helpful? Give feedback.
All reactions