Destructure tuple refs in pull or query

Assume a ref attr :x/y
we pull it as (pull eid '[{:x/y [:y/a :y/b]}])

now how do we do the same for a composite tuple
where :x/tup has tupleTypes [:db.type/ref :db.type/long]
i.e get the informtion of ref inside the tuple itself.

Result would be something like [{:db/id "eid" :y/a "a" :y/b "b"} some-long]

1 Like