threatgrid / asami

A graph store for Clojure and ClojureScript
Eclipse Public License 1.0
634 stars 29 forks source link

Tempids do not work in `[:db/add ...]` quadruplets #233

Open holyjak opened 2 years ago

holyjak commented 2 years ago

Demo:

(->> @(d/transact (d/connect "asami:mem://test1") {:tx-data [[:db/add -1 :inventory/replaced-by "dummy"]]})
       :db-after
       (d/q '[:find ?e ?a ?v :where [?e ?a ?v]]))
  ; => ([-1 :inventory/replaced-by "dummy"]) ; expected something like :node-123 instead of the -1

Asami version: 2.3.0