Fork me on GitHub
#datascript
<
2023-01-25
>
denik21:01:42

anyone aware of a library or utility function to merge entities upon an upsert error (i.e. transacting conflicting unique identity values)?

❤️ 2
metasoarous19:01:38

Some would argue that this is why you should only have one identity attribute per entity, but I've certainly encountered situations where it's felt convenient to have multiple notions of identity.

denik19:01:09

ideally yes but unfortunately it’s all too common to have foreign unique ids

metasoarous19:01:48

Agreed; You could potentially make these unique distinct instead of unique identity, but you're still gonna get errors, so may not be so helpful.

denik22:01:25

you mean unique value instead of identity?