you could also use the pull API as a separate step, or even create a custom function that does the work inside a subquery (e.g. something a little simpler than this lazy-authz-subquery-with-limit · GitHub …but hopefully it gives some idea)
A solution could be as following, however as @refset_xt mentioned on Slack, this could have different performance characteristics based on the configuration etc.
(->> (xt/q db '{:find [?e]
:in [?name]
:where [[?e :name ?name]]}
"example name")
(map first)
(xt/pull-many db pull-pattern))