datascript
datascript copied to clipboard
Recursive wildcard does not recurse
Using the example from the Day of Datomic pull_recursion.clj:
(d/pull (d/db conn) '["*" {:person/friend 2}] anne-id)
Works with latest Datomic, but not in Datascript. http://stackoverflow.com/questions/38092197/how-best-can-i-query-datomic-for-a-n-degrees-subgraph/38125324#38125324
I believe ...
works. Supporting recursion depth would be nice though.
(side note: *
can be a symbol; e.g.: '[* {:person/friend 2}]
)
I don't think recursion works with wildcards, either with a stated depth or unlimited. Here is a test
file of the simple code I copied out of the existing pull_api to test the issue:
recurse_test.txt sorry rejected the plain code
I just tried to do it here, don't work when there is a wildcard, bounded or unbounded recursion.