In NodeJS, with the firebase-admin library, when you run a transaction, you can use a function called getAll to read multiple documents, like this:
runTransaction((t) => {
const docs = await t.getAll(someDocRef, anotherDocRef);
});
Nonetheless, in the frontend you use the Javascript SDK (or a library that wraps it, like @angular/fire in my case), and with it you don't have getAll but get (for one document).
My question is, will I get the same functionality of getAll if I do:
runTransaction((t) => {
const docs = await Promise.all([
t.get(someDocRef),
t.get(anotherDocRef),
])
});