datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
Maik Wild 2020-09-18T05:58:45.000100Z

(not […]) does not seem to work in posh 😞

Maik Wild 2020-09-18T05:59:43.000300Z

Cannot compare :totally/unrelated-node to [$ ?entity-id :user/admin true]

Maik Wild 2020-09-18T06:23:27.000500Z

Thank you for your response. I think it could be a re-posh issue. I tried your code and it works fine. But when I run the same query using re-posh it acts very strange. Your example returns: #{[1 "john" [2 "bill the admin]} This workaround however seems to be doing it:

(re-posh/reg-query-sub
 ::user-admin
 '[:find ?e ?name
   :where
   [?e :employee/admin? ?is-admin?]
   [(= ?is-admin? false)]
   [?e :employee/name ?name]])