This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-30
Channels
- # babashka (44)
- # beginners (29)
- # calva (80)
- # cider (11)
- # clara (1)
- # clj-kondo (9)
- # clojure (80)
- # clojure-europe (21)
- # clojure-france (13)
- # clojure-nl (4)
- # clojure-spec (3)
- # clojure-uk (6)
- # clojurescript (72)
- # code-reviews (43)
- # cursive (11)
- # datomic (27)
- # events (13)
- # figwheel-main (12)
- # fulcro (27)
- # graalvm (1)
- # jackdaw (2)
- # kaocha (1)
- # malli (4)
- # meander (13)
- # nrepl (2)
- # pathom (8)
- # re-frame (4)
- # reagent (7)
- # reitit (9)
- # remote-jobs (1)
- # reveal (56)
- # ring-swagger (2)
- # sci (5)
- # shadow-cljs (20)
- # slack-help (2)
- # tools-deps (96)
- # vim (7)
- # xtdb (32)
I am trying to use pathom to send graphql queries to an exsting backend, In the documentation there are a few examples, but when I am trying the examples it appears as if I am working with an older library API. My Fulcro version is 3.0.10 and the pathom version is 2.2.31. Has anyone a hint?
hello, and yes, those docs are still on Fulcro 2, Pathom provides no direct helpers for Fulcro 3 at this point, you need to create a custom Remote on Fulcro 3, and hook the parser into it
here is an example of writing a remote like this for Fulcro 3 https://gist.github.com/wilkerlucio/c3c76024da0807223592cdd5bcd71d0e
Thanks for the reply
I'm using it here: https://github.com/souenzzo/eql-realworld-example-app/blob/master/src/conduit/client.cljs#L20
That will be helpful, thanks
hello! is it possible to alias mutations? unfortunately i'm not getting the results i expected, but maybe my syntax is incorrect:
(pg/query->graphql '[{(myMutationFn {:com.wsscode.pathom.graphql/alias "alias1" :id "someid" :user "someuser"}) [:id :user]}
{(myMutationFn {:com.wsscode.pathom.graphql/alias "alias2" :id "someid" :user "someuser"}) [:id :user]}])
=>
; missing aliases:
"mutation {
myMutationFn(id: \"someid\", user: \"someuser\") {
id
user
}
myMutationFn(id: \"someid\", user: \"someuser\") {
id
user
}
}
"