Dynamic pull selector

Hey @Robin, poking around the query I got this to work:

(d/q '[:find (pull ?e fields)
:in $ fields
:where [?e :game/name _]]
(d/db conn) '[*])

Which can be rewritten as:

(d/q '[:find (pull ?e fields)
:in $ fields
:where [?e :game/name _]]
(d/db conn) '[:db/id :game/name])

Not sure why though =)…

Hope it helps!

1 Like