datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
witek 2020-09-29T18:33:31.007Z

Hello. I ran into some inconsistency. Adding an empty entity works fine: (d/with db [{:db/id -1}]). But referencing it at the same time fails: (d/with db [{:db/id -1} [:db/add 1 :book/chapters -1]]) yields Tempids used only as value in transaction: (-1). Is this desired behavior or is this a bug?