remove absolute graphql error #1941
Conversation
|
This PR will break my use-case. Since the PR is not connected to any issue, I will describe my use-case here and then probably move it to a better place... I have a fetcher which returns a list of objects from database which serve as breadcrumbs on frontend. This is modeled as non-nullable list of nullable objects; the order matters in this list . My data fetcher is actually internally working with I am using the relative flag to allow myself the comfort of not setting locations and path on the I know that I am misusing the An ideal solution to my use-case would allow returning exceptions from items of a list without using DFR because DFR requires I was just considering whether to discuss my idea on Spektrum chat or create a Feature Request issue, but your PR made me act faster. :-) Even if you merge the PR, I can just pass something like A piece of code I use to handle exceptions on list items: |
You can ;post process the results of a list of CFs. You need to wait on all the results to come in to give out a single CF See |
# Conflicts: # src/main/java/graphql/execution/AbsoluteGraphQLError.java # src/main/java/graphql/execution/ExecutionStrategy.java # src/main/java/graphql/execution/nextgen/ValueFetcher.java # src/test/groovy/graphql/execution/AbsoluteGraphQLErrorTest.groovy
and special relative error flag in DataFetcherResult