This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-24
Channels
- # announcements (2)
- # beginners (130)
- # calva (72)
- # cider (4)
- # cljdoc (15)
- # cljs-dev (3)
- # cljsrn (2)
- # clojars (4)
- # clojure (55)
- # clojure-nl (1)
- # clojure-uk (19)
- # clojurescript (46)
- # cursive (95)
- # datomic (6)
- # figwheel (40)
- # fulcro (12)
- # hyperfiddle (3)
- # off-topic (11)
- # onyx (3)
- # parinfer (6)
- # pathom (15)
- # protorepl (38)
- # re-frame (67)
- # reitit (18)
- # shadow-cljs (45)
- # tools-deps (2)
how do i invoke the parser manually?
@U09FEH8GN what you mean by invoking the parser manually? the case you describe looks like a simple mutation join
How do I invoke the parser on a mutation literal outside of Fulcro
the parser is a function, you can call it directly
if you are using on the client it will return a channel
but I'm not following what you need
for example i have a mutation
[{(ucv.ui.mobile-pos.screens.camera/new-wash-&-unconfirmed-vehicle
{:file-id #uuid "a4028c1a-efdc-48f5-88aa-c0cf1b3015d3",
:wash {:wash/id #uuid "53988eca-da63-424c-af8c-f1c67f4c8b26"}})
[*]}]
basically i want to connect the pathom parser to my file-upload remote so clients can send post-upload-mutation/reads along with file uploads
Awesome release, the new batch-resolver
helper is pretty nifty
@U060GQK8U glad you enjoyed! there is a cool trick you can use with the new resolver syntax in case you get to it, if you want to use the nice macro syntax and make a batch resolver, you can write it like this:
(pc/defresolver batched-resolver [env items]
{::pc/input #{:id}
::pc/output [:id :name]
::pc/transform pc/transform-batch-resolver}
(mapv #(get db (:id %)) items))
Awesome, just changed it, to that. Like that waayyy better
Also found some cases where we can us it ourselves, feels a bit like middleware.. very powerful
function composition rox 🙂