This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-11
Channels
- # announcements (4)
- # aws (6)
- # babashka (40)
- # beginners (318)
- # biff (4)
- # bootstrapped-cljs (9)
- # calva (19)
- # chlorine-clover (1)
- # cider (3)
- # clj-on-windows (25)
- # cljdoc (8)
- # cljfx (1)
- # cljs-dev (30)
- # cljss (2)
- # clojure (62)
- # clojure-chile (9)
- # clojure-europe (11)
- # clojure-finland (17)
- # clojure-italy (1)
- # clojure-kc (1)
- # clojure-nl (3)
- # clojure-spec (27)
- # clojure-uk (40)
- # clojuremn (1)
- # clojurescript (51)
- # conjure (6)
- # cursive (8)
- # data-science (9)
- # datahike (4)
- # datascript (1)
- # datomic (31)
- # emacs (10)
- # emotion-cljs (1)
- # events (1)
- # figwheel-main (16)
- # find-my-lib (1)
- # fulcro (30)
- # graalvm (3)
- # graphql (12)
- # helix (16)
- # honeysql (5)
- # jobs (1)
- # jobs-discuss (10)
- # juxt (3)
- # kaocha (26)
- # lambdaisland (3)
- # leiningen (15)
- # malli (7)
- # off-topic (100)
- # pathom (8)
- # pedestal (15)
- # protojure (24)
- # re-frame (2)
- # reagent (7)
- # reitit (22)
- # remote-jobs (1)
- # shadow-cljs (140)
- # spacemacs (17)
- # spire (2)
- # tools-deps (23)
- # uix (11)
- # vim (5)
- # xtdb (3)
- # yada (3)
I’m trying out https://github.com/wilkerlucio/pathom-datomic and I’m not getting the results I’m expecting. I’ve set up a parser like in the documentation, but for some reason it is not able find the attribute(s) I ask for:
user=> (time (d/pull (d/db conn) '[:flag/status] [:external/id "v145153"]))
"Elapsed time: 0.373298 msecs"
#:flag{:status #:db{:id 17592186045462}}
user=> (parser {} [{[:external/id "v145153"] '[:flag/status]}])
{[:external/id "v145153"] #:flag{:status :com.wsscode.pathom.core/not-found}}
What is a good approach to debug this?I have run some commands from the tests like https://github.com/wilkerlucio/pathom-datomic/blob/master/test/com/wsscode/pathom/connect/datomic_test.clj#L508 It gives a results that confirms that Pathom can read the db
Hey there! Is there any way to set a client-side pathom parser as a remote on the client side of a fulcro 3 application? I've been trying to get it to work using pfn/pathom-remote, but that depends on fulcro.client.network, which isn't a thing in fulcro 3.
i'm interested in this as well. There's an example in the fulcro guide code: https://github.com/fulcrologic/fulcro-developer-guide/blob/master/src/book/book/pathom.cljs
haven't played around with it yet, but it'd be great to have a client only app that makes use of api calls via a client-side parser
@gekarian123 @danvingo https://github.com/codonnell/crudless-todomvc/blob/master/src/crudless_todomvc/remote.cljs is an example
The client-side parser uses graphql, but the setup should be the same as with a rest api or whatever other data source.
Ah, I should update my example to use mock-http-server
. Didn't know about that!