This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-24
Channels
- # adventofcode (13)
- # beginners (163)
- # boot (8)
- # cider (1)
- # clojure (86)
- # clojure-germany (1)
- # clojure-italy (2)
- # clojure-spec (66)
- # clojure-switzerland (1)
- # clojure-uk (25)
- # clojured (1)
- # clojurescript (58)
- # core-async (1)
- # cursive (4)
- # datomic (11)
- # events (1)
- # funcool (3)
- # hoplon (86)
- # off-topic (8)
- # om (11)
- # onyx (1)
- # protorepl (7)
- # re-frame (15)
- # ring-swagger (4)
I'm reading "Identity and Uniqueness" page of Datomic docs, and it says the following about idents: "When you navigate the entity API to a reference that has an ident, the lookup will return the ident, not another entity." -- what does it mean? I can't wrap my head around "navigate the entity API to a reference".
A reference, or ref, is a value type
A car has a model
:car/model, the attribute, is a ref
If you navigate from the car to the model entity and the model happens to have an ident, the entity map will return the ident
@pesterhazy Thanks
Interesting. I have created an entity with a reference to non-existing entity, and it worked: (datomic.api/transact conn [[:db/add "jdoe" :db/lang 44444444]])
-- is that expected?
Ah, I see the rationale here: https://groups.google.com/forum/#!topic/datomic/jZYXqtB4ycY