This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-22
Channels
- # announcements (9)
- # asami (52)
- # aws (1)
- # babashka (7)
- # babashka-sci-dev (12)
- # beginners (72)
- # calva (24)
- # cider (9)
- # clj-kondo (76)
- # cljs-dev (15)
- # clojure (19)
- # clojure-australia (4)
- # clojure-europe (33)
- # clojure-france (9)
- # clojure-gamedev (17)
- # clojure-nl (6)
- # clojure-portugal (5)
- # clojure-uk (5)
- # clojurescript (61)
- # clojureverse-ops (4)
- # code-reviews (23)
- # conjure (1)
- # data-science (2)
- # datalevin (6)
- # datomic (49)
- # gratitude (1)
- # helix (24)
- # holy-lambda (14)
- # jobs (3)
- # lsp (92)
- # malli (7)
- # missionary (8)
- # pathom (12)
- # proletarian (3)
- # re-frame (4)
- # remote-jobs (1)
- # shadow-cljs (4)
- # spacemacs (3)
- # sql (9)
- # tools-build (90)
- # vim (1)
- # xtdb (11)
Good morning! Is this behavior expected in pathom3 (where the same keyword returns different values based on other keys you ask for)? I can see that it’s b/c the :node/index
key takes :node/parent
as its input but it’s unexpected (to me) that those extra keys would leak through to the response.
https://github.com/dehli/pathom-edge-cases/blob/e3cc7d39db4ee10aa654d018d65193adce06b6de/pathom3/extra-keys/main/src/dev/dehli/pathom3/extra_keys.clj#L33-L45
this is expected because you are not specifying the details of :node/parent
, so it gets everything
I think you may want to use a recursive query there, in which case it would liimt the results
like:
(p.eql/process env {:node/id 1} [:node/id {:node/parent ['...]}])
okay, that makes sense. i’ll need to think through how to restrict asking for :node/parent
without sub keys since best practice would be to always specify all the requested keys (so that internal values won’t get returned)
In Phatom3, is there a way to see all the attributes reachable given a input? I'm using PathomViz and the index explorer > provides view only seems to show the next node.
Try com.wsscode.pathom3.connect.indexes/reachable-paths
I recently noted a bug on the attribute indexing, it may be it, its related to nested atrributes, they are not getting pulled out
but also on the UI, there is the depth choice, by default the graph view only shows 1 depth
but you can click to increase
can you make a small case of what you see/miss? just wanna make sure its the same thing or a possible new issue