Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
return entityManager.getRepository(entityCls); } } This class is supposed to be the parent class for all the repositories and it takes two arguments from the constructor: dataSource: A simple connection from the connection pool that doesn’t have any transaction request: The request object. We have