Fork me on GitHub
#graphql
<
2019-05-16
>
Chris10:05:16

Hi, I know this is asked regularly but I'm afraid I can't remember the answer: what's the best Clojure/JVM GraphQL client these days? We're writing a new service that needs to fetch some data from our Lacinia backend.

maridonkers13:05:11

Tried the re-graph client https://github.com/oliyh/re-graph and I'm planning to check out Artemis. https://github.com/workframers/artemis

orestis13:05:07

I’m just using plain HTTP from the browser. Works fine if your queries are static or only need to use variables.

donaldball13:05:08

We’re using district0x/graphql-query of the venia family, though I’m nonplussed that none of the popular forks seem to escape string literals correctly.

lilactown13:05:04

@cbowdon I just use clj-http on the JVM

Chris18:05:33

Thanks all. I’ll have a look at graphql-query first then.

bartuka21:05:50

hi guys, I can't find examples of how to implement pagination using lacinia, I have common use-cases for this.

Lennart Buit21:05:26

A coworker of mine hand wrote an implementation of the relay cursor connection: https://facebook.github.io/relay/graphql/connections.htm . To the best of my knowledge, Lacinia doesn’t provide it out of the box but you can implement it.

bartuka22:05:03

@lennart.buit I was looking for other projects that implemented that specification 😕

Lennart Buit22:05:22

I would be equally interested because we currently have in house solutions for the relay conventions