Fork me on GitHub
#datascript
<
2022-12-30
>
Jonor00:12:21

Is there a way to calculate the path length/depth for a recursive query result?

refset11:12:51

You have to track it manually, like https://gist.github.com/refset/57a910e2b746332ec7a0a31886f57cfb (this is for XTDB not DataScript, but hopefully gives some clue)

Jonor20:12:51

Thanks, that is interesting. Star and no-star designates output and input variables? What is the purpose of the first rule?