Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
queryRunner.release(); } // ... } Here there are a couple things to point out: queryRunner.connect() method reserves a connection from the connection pool. queryRunner.startTransaction() is an async method that creates the transaction. We use queryRunner.manager object to access the entity manager