Fork me on GitHub
#pathom
<
2021-11-05
>
cjsauer19:11:30

Hey all, has anyone ever run into “recursive union” queries? I’ve been playing with pyramid which has some EQL support and documented https://github.com/lilactown/pyramid/issues/13, but then realized it is likely a more general EQL problem. How would one handle this in pathom for example?

cjsauer19:11:25

It seems that both pyramid and pathom’s recursive primitive, namely the '... symbol, assume that the direct parent is the target of that recursion. Is there any way to say that, for example, the grandparent is the target of recursion?

cjsauer19:11:20

Or said another way, how can one recursively query a heterogenous tree with EQL?

cjsauer20:11:08

Okay I actually just https://github.com/lilactown/pyramid/issues/13#issuecomment-962179903 😅 I was reaching for a union query unnecessarily. Namespaced keywords let one just ask for everything at the root, and then the parent is indeed the proper recursion target.

duckie 3