Fork me on GitHub
#datascript
<
2017-08-01
>
danielneal08:08:37

is there a function in the api that does

(d/pull db '[*] [:product/id 3])
but returns nil for not found entities, instead of throwing? I can do
(when-let [eid (d/entid db [:product/id product-id])]
  (d/pull db '[*] eid))
but figured there might already be an existing function / option

Niki09:08:49

I don’t think so

danielneal09:08:10

ah cool thanks, just wanted to check 🙂