Domain logic error handling for UI display #1416
Unanswered
Christian-Vasilev
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
-
I'm trying to wrap my head around for 2 days now and I can't come up with a good solution that follows good practices.
I have the following Query Class.
I'm using the Standart Server and trying to stop the execution of the request in the first
resolve
if there is a domain logic error. I don't want to continue down the child resolvers and load data. The main problem is that the information in the child resolvers is dependent of the main resolver (Like you can see here when I'm calling
getEventById
. If I have no found event with this ID I want to stop the request here and return response.I have a response already created, but I can't stop the execution of the other resolvers. So the following questions popup in my head.
Beta Was this translation helpful? Give feedback.
All reactions