Fork me on GitHub
#pathom
<
2020-10-31
>
lilactown22:10:01

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 ...}] ?

wilkerlucio01:11:05

yes, that's correct