NestJS - Database with TypeORM
Given the following code snippet in a NestJS service using TypeORM, what will be the output if the second operation fails?
await dataSource.transaction(async (manager) => {
await manager.save(user1);
await manager.save(user2); // throws error
});
console.log('Transaction complete');