Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
like that, the first argument has to be the entity class so that the entity manager will know what table we are inserting into. Once we execute all the queries without any errors, we run queryRunner.commitTransaction() to commit the transaction which persists the writes into the DB. If any error