This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-01
Channels
- # adventofcode (1)
- # announcements (10)
- # babashka (13)
- # beginners (104)
- # braveandtrue (2)
- # calva (5)
- # clj-kondo (23)
- # cljdoc (8)
- # clojure (10)
- # clojure-finland (1)
- # clojure-greece (1)
- # clojure-norway (2)
- # clojure-sweden (7)
- # clojure-uk (29)
- # clojurescript (20)
- # community-development (12)
- # cursive (4)
- # datomic (1)
- # duct (2)
- # emacs (24)
- # fulcro (48)
- # off-topic (5)
- # pathom (2)
- # planck (2)
- # quil (3)
- # reagent (17)
- # reitit (7)
Hi! I've probably missed something in the documentation but I can't figure this out. Any help is appreciated! Suppose I have two resolvers as in:
; resolver 1
::pc/input #{:x/id}
::pc/output [:x/name {:x/y [:y/id]}]
; resolver 2
::pc/input #{:y/id}
::pc/output [:y/name]
How can I write a resolver that, given :x/id
, can calculate some function based on :x/name
and :y/name
?
I've tried the following:
::pc/input #{:x/id :x/name :y/name} ; always returns not-found
::pc/input #{:x/id :x/name :x/y} ; won't have :y/name
::pc/input #{:x/id :x/name {:x/y [:y/name]}} ; won't work
@dns I’ve had essentially the same question https://clojurians.slack.com/archives/C87NB2CFN/p1575895495389300?thread_ts=1575554067.386000&channel=C87NB2CFN&message_ts=1575895495.389300
👍 4