pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
2020-06-11T17:00:33.222200Z

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?

2020-06-11T17:01:13.222500Z

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

captain.g 2020-06-11T18:42:51.225100Z

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.

2020-06-11T20:22:12.225900Z

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

2020-06-11T20:22:57.227Z

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

2020-06-11T21:30:05.229600Z

The client-side parser uses graphql, but the setup should be the same as with a rest api or whatever other data source.

2020-06-11T21:38:56.230400Z

Ah, I should update my example to use mock-http-server. Didn't know about that!