Open bday2009 opened 3 years ago
Hi there, thanks for discovering my library and trying to try it out :)
I’ve only used it with lacinia/ring/jetty so far but seeing how it could work with pedestal would be interesting. Thank you for your suggestions.
I am going to flesh out the docs a bit more and also knock up some concrete example apps as it’s probably easier to understand how to hook it up. I will check out lacinia-pedestal during this exercise.
That would be very cool. Thank you!
Hi @bday2009,
I added a section on how to use this with pedestal. Let me know if it works for you.
Hello, thank you for this library. I'm using
superlifter
to handle batching for mylacinia
GraphQL server and I'd like to compare the two libraries.lacinia
provideslacinia-pedestal
to quickly hook up apedestal
service for GraphQL. I'm looking at the documentation oftako
and I'm not sure how to clean up the loaders usinglacinia-pedestal
, as it does not uselacinia/execute
function. From looking atlacinia-pedestal
source code I thought this would be the place to do that: https://github.com/walmartlabs/lacinia-pedestal/blob/master/src/com/walmartlabs/lacinia/pedestal/internal.clj#L198 So maybe:Then replace the interceptor with enter fn here: https://github.com/walmartlabs/lacinia-pedestal/blob/master/src/com/walmartlabs/lacinia/pedestal/internal.clj#L206
What do you think? Maybe
tako
can provide an utility function to set this up quickly?