This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-10
Channels
- # 100-days-of-code (2)
- # adventofcode (188)
- # aleph (3)
- # announcements (2)
- # beginners (76)
- # boot (3)
- # braveandtrue (49)
- # cider (82)
- # clara (15)
- # clojure (101)
- # clojure-europe (4)
- # clojure-india (3)
- # clojure-italy (26)
- # clojure-kc (1)
- # clojure-nl (4)
- # clojure-norway (1)
- # clojure-russia (5)
- # clojure-uk (33)
- # clojurescript (32)
- # crypto (20)
- # cursive (34)
- # datomic (45)
- # emacs (3)
- # events (1)
- # figwheel (1)
- # figwheel-main (10)
- # fulcro (30)
- # graphql (14)
- # hoplon (12)
- # hyperfiddle (21)
- # jobs (11)
- # kaocha (7)
- # klipse (8)
- # leiningen (10)
- # luminus (3)
- # nrepl (18)
- # off-topic (232)
- # onyx (8)
- # pathom (6)
- # re-frame (30)
- # reagent (3)
- # reitit (6)
- # remote-jobs (3)
- # ring-swagger (4)
- # shadow-cljs (21)
- # spacemacs (5)
- # sql (18)
- # tools-deps (23)
- # yada (2)
i'm not seeing an obvious choice for a gql client in clojure. can anyone recommend one?
You might take a look at artemis, which aims to be kind of a minimalist cljs apollo: http://docs.workframe.com/artemis/current/index.html
@timgilbert thanks, but looking for clojure, not cljs @joe.lane clojure
here's my poor man's client 😂
(defn graphql [query]
(client/post
(-> (config) :graphql :endpoint)
{:headers {"Authorization" (str "bearer " (:token (config)))}
:body (str "{\"query\": \"" (s/replace query #"\n" "") "\"}")
:as :json}))
Oh, I see. I don't know of one for the client-side on the JVM
...that seems reasonable
Yeah. One thing you might be interested is that if you've got Clojure on both sides you can use EDN or transit as the wire format, which can save a few headaches with keyword conversions etc.
yep already hitting escaping issues 😖 but i'm hitting github graphql api so i don't have the choice
Doesn't help if you need to interop with javascript etc though
Ah, ok