Hey, what's the best way to construct query that returns all items with specified ids. Given I have list of ids, let's say list of user/id, how do I get all entities corresponding to these ids?
I’m not sure if it’s the best way to go since I’m new to Datomic, but that’s how I would do it:
(d/q
'[:find ?e
:in $ [?id ...]
:where
[?e :user/id ?id]]
db
["id-1" "id-2"])
@thsojka thanks! that's exactly what I was looking for!