This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-31
Channels
- # architecture (1)
- # asami (25)
- # babashka (1)
- # beginners (1)
- # calva (23)
- # clj-kondo (54)
- # cljfx (23)
- # cljsrn (9)
- # clojure (72)
- # clojure-europe (2)
- # clojure-spec (16)
- # clojure-uk (4)
- # clojurescript (10)
- # code-reviews (1)
- # cursive (2)
- # datomic (1)
- # events (2)
- # exercism (2)
- # fulcro (6)
- # graalvm (1)
- # malli (1)
- # membrane (1)
- # off-topic (31)
- # pathom (3)
- # reagent (6)
- # reitit (2)
- # releases (1)
- # shadow-cljs (1)
- # vim (6)
- # vrac (25)
- # xtdb (4)
trying to understand the EQL spec a bit better w.r.t. recursion. is the expectation for a query like:
[{[:entry/name "foo"] [:entry/name {:entry/folders ...}]}]
which results in this AST:
{:type :root,
:children
[{:type :join,
:dispatch-key :entry/name,
:key [:entry/name "foo"],
:query [:entry/name #:entry{:folders ...}],
:children
[{:type :prop, :dispatch-key :entry/name, :key :entry/name}
{:type :join,
:dispatch-key :entry/folders,
:key :entry/folders,
:query ...}]}]}
that when I am interpreting the :entry/folders
join, I will repeat the previous query [:entry/name #:entry{:folders ...}]
?yes, that's correct
for reference, this is where the pathom parser does it: https://github.com/wilkerlucio/pathom/blob/master/src/com/wsscode/pathom/parser.cljc#L236