Fork me on GitHub
#datomic
<
2017-03-13
>
rc114009:03:06

hi all , is it possible to return a map when using find with values , i..e (datomic.api/q '[:find ?name ?age ?email .......etc

rc114009:03:16

atm that returns an array of values

rc114009:03:43

from what i understand if i want a map with :user/name etc , i need to use the pull api

misha09:03:14

@rc1140

;; query
[:find (pull ?e [:release/name])
 :in $ ?artist
 :where [?e :release/artists ?artist]]

rc114009:03:09

correct thats thats what i said , if i want a map i have to use the pull api as you showed not the :find ?name ?age (dont know what that format is called)

misha09:03:05

or just get the ids, and call d/pull-many on them afterwards