Zuriar
Zuriar

Reputation: 11734

Pull all entity attributes and values given a set of entity IDs in Datomic

I have a hashset of Entity IDs:

#{1234 5678 9012 4864 ...}

How can I return a collection of maps of each Entity's attributes and values. I am guessing this is done with the pull api?

Upvotes: 1

Views: 141

Answers (1)

Valentin Waeselynck
Valentin Waeselynck

Reputation: 6051

Sure, for instance with pull-many:

(require '[datomic.api :as d])
(d/pull-many db '[*] (seq #{1234 5678 9012 4864}))

Upvotes: 2

Related Questions