Transaction doesn't support Promise.all
This works:
This does not:
This does not:
await db.transaction(async (tx) => {
await tx.insert...
await tx.insert...
}); await db.transaction(async (tx) => {
const p0 = tx.insert...
const p1 = tx.insert...
await Promise.all([
p0,
p1,
]);
});