Fork me on GitHub
#datomic
<
2024-02-25
>
jasonjckn03:02:41

Pretty sure the answer here is 'no', but if there's any other ways to avoid upsert, when intending rather to instantiate a fresh entity, beyond :db.unique/value, would love to know. The problem with :db.unique/value is the ex-data doesn't really tell which attribute caused it unless you parse the ex-message string with a regular expression. Obviously, tx-fn to the rescue.