Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
'src/common/base-repository'; import { DataSource } from 'typeorm'; import { Product } from './products.entity'; @Injectable({ scope: Scope.REQUEST }) export class ProductsRepository extends BaseRepository { constructor(dataSource: DataSource, @Inject(REQUEST) req: Request) { super(dataSource,