Fork me on GitHub
#pathom
<
2020-12-18
>
kenny17:12:33

I have a ::pc/batch? resolver that throws an exception. After the exception is thrown, it appears that the resolver gets called again for each item in the list, throwing each time. This results in thousands of exceptions getting thrown for a single resolver call. Is there a way to tell the resolver to end the calls if the batch resolver throws?

wilkerlucio21:12:56

hello, yes, its like that, what you can do is wrap the error in a try catch, and just provide empty state for the records (as if it returned all blank), this wya Pathom wont try to process then, this may help: https://cljdoc.org/d/com.wsscode/pathom/2.3.0/api/com.wsscode.pathom.connect#batch-restore-sort