datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
hoppy 2020-09-30T15:48:46.010300Z

negative :db/id (tempids) are for when you are creating a new entity. they are placeholders so the rest of the batch of the transaction can use the same placeholder entity to refer to each other. the return map has a ':tempids' map which correlates your placeholders to the actual entity ids once transacted.