If I have the following Datomic database:
{ :fred :age 42 }
{ :fred :likes :pizza }
{ :sally :age 42 }
How do I query for both entities (:fred
and :sally
), getting back the attribute :likes :pizza
for :fred
and an empty value for :sally
?
The query
[:find ?n ?a ?l
:where [?n :age ?a]
[?n :likes ?l]]
only returns :fred 42 :pizza
.