This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-23
Channels
- # announcements (18)
- # beginners (26)
- # calva (12)
- # cider (43)
- # cljdoc (4)
- # clojure (38)
- # clojure-europe (11)
- # clojure-nl (1)
- # clojure-norway (12)
- # clojure-sweden (2)
- # clojure-uk (4)
- # cursive (17)
- # data-science (4)
- # datalevin (2)
- # datomic (3)
- # emacs (10)
- # ghostwheel (4)
- # graphql (11)
- # honeysql (1)
- # hyperfiddle (7)
- # introduce-yourself (1)
- # malli (23)
- # nrepl (11)
- # overtone (1)
- # pathom (9)
- # pedestal (2)
- # polylith (1)
- # portal (3)
- # reitit (1)
- # shadow-cljs (12)
- # timbre (4)
- # vim (2)
- # xtdb (4)
(pco/defresolver items
[]
{::pco/output [{:items [:item/id]}]}
{:items [{:item/id 1}
{:item/id 2}]})
(pco/defresolver item
[{:item/keys [id]}]
{::pco/output [:item/name]}
{:item/name (str "name: " id)})
(p.eql/process
(-> {}
(pci/register [items item])
(p.connector/connect-env "fiddles"))
[:items])))
Why is it that when I look at the graph in viz, there is no connection between :items
and :item/id
? My expectation is that there should be because the items
resolver's ::pco/output
(and return value shape) both include :item/id
.
In the screenshot, the red node is :items
while the green one is item/id
.because they are a nested relationship, those aren't visually mapped in Pathom Viz, only sibling connections (like :item/id
-> :item/name
) are considered there
Shouldn't they show up in in Viz when you are looking at the graph view for :items
and select Nested Outputs
?
sorry, its been a long time, my guess is that you might be able to see in this view, but not in the full graph, those appear in this particular view? or not even there?
could also be a bug, something missing to port (this view is quite old, from Pathom 2 times)
Nope, :item/id
is not in the :items
graph view at all. It does show up when looking at the fiddles.pathom/items
resolver graph, but not the attribute graph. There's still no connection between :items
->`:item/id` in the resolver graph, though.
I understand your point about only sibling relationships being represented in the full graph. My question here is: is this indicative of a problem in my resolvers that should be addressed, or is that just the way it is and not an issue?
just the way the viz is, your resolver is fine
Perfect, thanks @U066U8JQJ!