You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thank you for this library. I'm using superlifter to handle batching for my lacinia GraphQL server and I'd like to compare the two libraries. lacinia provides lacinia-pedestal to quickly hook up a pedestal service for GraphQL. I'm looking at the documentation of tako and I'm not sure how to clean up the loaders using lacinia-pedestal, as it does not use lacinia/execute function.
From looking at lacinia-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:
(defn ^:private execute-query
[context]
(let [request (:request context)
{q :parsed-lacinia-query app-context :lacinia-app-context} request
result (executor/execute-query
(assoc app-context constants/parsed-query-key q))]
;; clean up here
result))
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.
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 at
lacinia-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#L198So 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?The text was updated successfully, but these errors were encountered: