graphql

souenzzo 2019-03-09T16:58:00.026800Z

I'm using lacinia-pedestal When some resolver throws, it returns "Internal server error" How to handle that?

orestis 2019-03-09T17:57:13.028200Z

Resolvers are never supposed to throw, afaik you need to catch exceptions yourself and return a resolver error

👍 1
hlship 2019-03-11T21:45:20.028500Z

An earlier version of Lacinia did catch exceptions thrown by resolvers; the end result was that it became extremely difficult to debug exceptions thrown inside resolvers.

orestis 2019-03-12T05:36:40.030Z

Hah, good one. Writing a defresolver macro in our project should be straightforward enough. I’ll see if I can share one...