Coding task · NestJS course · Module 3: TypeORM and Databases
@Transaction decorator (alternative)
Use the @Transaction decorator to simplify transaction code.
Task
Write a service method using dataSource.transaction(async manager => { ... }), which creates a tribute and updates a province