Fork me on GitHub
#graphql
<
2018-04-02
>
Serge09:04:01

Hello! How to use graphql/Lacinia with Compojure/ring?

hlship17:04:06

Looking for an answer, or for us to add it to the coming FAQ?

eggsyntax19:04:23

@U99CB502F if you're looking for an answer, you might want to look at luminus with the +graphql option. That'll give you a good example of using lacinia with ring/compojure.

hlship19:04:20

It really comes down to: write a Ring handler that gets the data from the request and feeds it to com.walmartlabs.lacinia/execute.

👍 4
hlship19:04:03

lacinia-pedestal breaks that apart into a number of stages to make it easier to do custom extensions without rewriting the code: things like auth and such.

Serge11:04:39

Thanks for the answers