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 reverse lookup fails with :db/isComponent in 1.3.0 #411

Closed
zeitstein opened this issue Nov 28, 2021 · 1 comment
Closed

Recursive reverse lookup fails with :db/isComponent in 1.3.0 #411

zeitstein opened this issue Nov 28, 2021 · 1 comment

Comments

@zeitstein
Copy link

To reproduce:

(def conn (d/create-conn {:uuid  {:db/unique :db.unique/identity}
                          :child {:db/valueType   :db.type/ref
                                  :db/isComponent true}}))

(d/transact! conn [{:uuid "parent"
                    :child {:uuid "child"}}
                   {:uuid "child"}])

Pull:

(d/pull @conn '[:uuid {:_child ...}] [:uuid "child"])
=> Execution error (NullPointerException) at datascript.pull_api.ReverseAttrsFrame/_run (pull_api.cljc:212).
@tonsky tonsky closed this as completed in be9f427 Nov 29, 2021
@tonsky
Copy link
Owner

tonsky commented Nov 29, 2021

Thank you! Fixed in 1.3.1

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

2 participants