Fork me on GitHub
#datomic
<
2015-06-09
>
stig10:06:57

+1 for recording! I cannot make the hangout in realtime, unfortunately 😞

robert-stuttaford10:06:31

i’ll be sure to record it simple_smile

ericfode20:06:45

I am curious... When you have an enum value in your datomic database, and an entity references it should the reference be marked as isComponent

bhagany20:06:02

@ericfode probably not… if I'm understanding correctly, that would mean that retracting the referencing entity would retract the enum entry too

ericfode20:06:39

That was my thought also. the problem is when i pull the entity it pulls the id of the enum value instead of the enum value

ericfode20:06:47

do you know of a good way to get around that ?

bhagany20:06:57

oh yeah, that's an annoying thing about the pull api

ericfode20:06:13

should I prefer the entity api?

bhagany20:06:34

I get around it by doing something like (pull ?thing [* {:enum/thing [:db/ident]}])

bhagany20:06:52

I use the pull api a lot, and just deal with it

ericfode20:06:29

lol sounds good. simple_smile Thanks for the tip, I really appreciate it