Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
the first way, we’ll be simply using query runner object to start a transaction. Then all the write queries are going to be run using that query runner object to ensure we wrap all the write operations in that transaction. The second way will be the advanced one where we will utilize interceptors