This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-24
Channels
- # aleph (1)
- # babashka (2)
- # beginners (25)
- # calva (5)
- # cider (8)
- # cljdoc (4)
- # clojure (81)
- # clojure-europe (41)
- # clojure-spec (11)
- # clojurescript (7)
- # conjure (1)
- # data-science (1)
- # datomic (25)
- # defnpodcast (3)
- # events (2)
- # figwheel-main (8)
- # fulcro (5)
- # helix (4)
- # hugsql (1)
- # java (2)
- # off-topic (35)
- # onyx (18)
- # pathom (8)
- # rdf (5)
- # re-frame (9)
- # reagent (3)
- # reitit (1)
- # shadow-cljs (39)
- # tools-deps (53)
- # xtdb (23)
thanks, reporting here works, there is also #eql
Hi, I have a mutation that I’d like to take both ::pc/input
and ::pc/params
(where I’d like the ::pc/input
the be an attribute that’s globally resolvable). I’ve tried to get this to work but the input isn’t resolving. Is this supported? Thanks!
(pc/defmutation send-login-email
[{:keys [send-email]} {:app/keys [origin] :login/keys [email]}]
{::pc/sym 'login/send-email
::pc/input #{:app/origin}
::pc/params [:login/email]
::pc/output [:login/sent]}
(go
(<! (send-email {:email email :origin origin}))
{:login/sent true}))
Just call the parser from the mutation
(pc/defmutation send-login-email
[{:keys [parser] :as env} {:app/keys [origin] :login/keys [email]}]
{::pc/sym 'login/send-email
::pc/params [:login/email]
::pc/output [:login/sent]}
(go
(<! (send-email {:email email :origin (:app/origin (<! (parser env [:app/origin])}))))
{:login/sent true}))
👍 6