Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive wildcard does not recurse #167

Open
timothypratley opened this issue Jul 4, 2016 · 5 comments
Open

Recursive wildcard does not recurse #167

timothypratley opened this issue Jul 4, 2016 · 5 comments

Comments

@timothypratley
Copy link
Contributor

timothypratley commented Jul 4, 2016

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

@metasoarous
Copy link

I believe ... works. Supporting recursion depth would be nice though.

@metasoarous
Copy link

metasoarous commented Aug 19, 2016

(side note: * can be a symbol; e.g.: '[* {:person/friend 2}])

@FalseProtagonist
Copy link

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:

@FalseProtagonist
Copy link

recurse_test.txt
sorry rejected the plain code

@wilkerlucio
Copy link

I just tried to do it here, don't work when there is a wildcard, bounded or unbounded recursion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants