Fork me on GitHub
#datomic
<
2019-11-21
>
dmarjenburgh10:11:11

I’m trying to do a db/cas to update a db.type/ref attribute of an entity using lookup refs: [:db/cas [:user/id uid] :user/team [:team/id old-tid] [:team/id new-tid]] But this fails: Compare failed: [:team/id 123] 52549571713949802

dmarjenburgh10:11:19

It seems like you can’t use lookup-refs for the “old-value” in a cas?

favila11:11:26

Yeah, Cas doesn’t have any smarts about types

favila11:11:19

The lookup ref works for the new value only because db/add is resolving it, not because cas is doing anything

souenzzo13:11:07

https://portal.feedback.eu.pendo.io/app/#/case/26858 My receptive "report" from 3 yrs ago. It's still a undocumented behavior

colinkahn20:11:43

Does datomic treat var symbols with dots in them differently? Like ?bar vs ?foo.bar

colinkahn20:11:24

Datomic is hanging when I use the dot version