Fork me on GitHub
#datomic
<
2016-02-23
>
lfn302:02:58

@grzm: select-keys is probably what you’re after

pesterhazy09:02:13

@grzm: are you talking about the results of d/transact?

grzm14:02:04

@pesterhazy yup. I'm using dissoc and it appears to be working.

pesterhazy15:02:20

What's the idiomatic way to check if d/entity returned an actual entity?

pesterhazy15:02:45

(seq (d/entity (rdb) 999999)) works, but is that the best option?

Ben Kamphaus15:02:44

@pesterhazy: I would use query instead of entity for an existence check, see Rich’s comment here: https://groups.google.com/d/msg/datomic/jZYXqtB4ycY/sbfHvVm6P5oJ

pesterhazy15:02:10

seq seems like a good way to test if anything is know about an entity simple_smile

pesterhazy15:02:06

@bkamphaus: thanks for the pointer though!