Fork me on GitHub
#datomic
<
2015-10-31
>
magnars14:10:32

If I upsert an existing entity, where all facts in the map are already asserted in the db - how does Datomic behave? Will it create an empty transaction? Or re-assert all the facts?

Alex Miller (Clojure team)14:10:36

datomic records novelty

magnars14:10:35

that is very handy!

zentrope23:10:51

In the pull pattern, you can (default :some/type []), but what if you want to add specifiers to :some/type if it exists?

zentrope23:10:13

(default {:some/type [:db/ident]} []) doesn’t work, for instance.

zentrope23:10:00

Still surprises me when I {:db/id … :some/props #{}} and no enums are removed from :some/props.