This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-21
Channels
- # aleph (2)
- # announcements (2)
- # babashka (10)
- # beginners (117)
- # calva (11)
- # cider (19)
- # clj-kondo (27)
- # cljs-dev (24)
- # cljsjs (1)
- # clojure (73)
- # clojure-europe (3)
- # clojure-italy (2)
- # clojure-nl (47)
- # clojure-spec (23)
- # clojure-uk (28)
- # clojurescript (71)
- # cursive (7)
- # data-science (17)
- # datascript (1)
- # datomic (7)
- # duct (23)
- # emacs (23)
- # fulcro (6)
- # graalvm (41)
- # jobs (2)
- # luminus (1)
- # malli (1)
- # off-topic (151)
- # pathom (1)
- # portkey (10)
- # re-frame (12)
- # reitit (17)
- # shadow-cljs (158)
- # spacemacs (14)
- # sql (8)
- # tools-deps (17)
- # xtdb (9)
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
It seems like you can’t use lookup-refs for the “old-value” in a cas?
The lookup ref works for the new value only because db/add is resolving it, not because cas is doing anything
https://portal.feedback.eu.pendo.io/app/#/case/26858 My receptive "report" from 3 yrs ago. It's still a undocumented behavior