Fork me on GitHub
#datascript
<
2020-09-30
>
hoppy15:09:46

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.