datascript 2021-09-08

Would not recursion rely on having all recursive traversals be of the same key, and hence the same arity?

Thanks @john493 I wasn’t sure if this was how it worked

I thought maybe there was some type of recursion based on the fragment specified

This makes sense though

Using a query, one can recur on multiple keys. The way this works is one defines a rule that picks the key to recur on:

[(ancestor ?child ?parent)
 (or [?child ?mother ?parent]
     [?child ?father ?parent])]

That is not a complete solution. But I cannot find my notes at the moment.