graphql

Chris 2019-05-16T10:09:16.132800Z

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.

orestis 2019-05-16T13:20:07.133500Z

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

donaldball 2019-05-16T13:21:08.134400Z

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.

2019-05-16T13:26:11.134500Z

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

lilactown 2019-05-16T13:47:04.135400Z

@cbowdon I just use clj-http on the JVM

Chris 2019-05-16T18:20:10.135600Z

Thanks

Chris 2019-05-16T18:21:33.136700Z

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

bartuka 2019-05-16T21:47:50.137900Z

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

2019-05-16T21:51:26.140400Z

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.

bartuka 2019-05-16T22:05:03.141300Z

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

2019-05-16T22:31:22.142700Z

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