Fork me on GitHub
#graphql
<
2022-10-25
>
bhurlow20:10:07

new to lacinia, I was slightly surprised to find that using resolve-as to designate an error in a field resolver didn't halt execution down to the leaves, but I can also see reasoning for doing so. Is there a way to opt into terminating the execution flow?

bhurlow20:10:32

otherwise I need to add additional nil checks to the field resolvers

bhurlow20:10:22

actually, looks like (resolve-as nil {:message "error-message"}) does this