Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
'src/common/base-repository'; import { DataSource } from 'typeorm'; import { Item } from './items.entity'; import { CreateItemDto } from './dtos/create-item.dto'; @Injectable({ scope: Scope.REQUEST }) export class ItemsRepository extends BaseRepository { constructor(dataSource: DataSource,