Transaction doesn't support Promise.all

This works:
 await db.transaction(async (tx) => {
        await tx.insert...
        await tx.insert...
      });


This does not:
 await db.transaction(async (tx) => {
        const p0 = tx.insert...
        const p1 = tx.insert...
        await Promise.all([
          p0,
          p1,
        ]);
      });
Was this page helpful?