Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
'./orders.entity'; import { REQUEST } from '@nestjs/core'; @Injectable({ scope: Scope.REQUEST }) export class OrdersRepository extends BaseRepository { constructor(dataSource: DataSource, @Inject(REQUEST) req: Request) { super(dataSource, req); } async getOrders() { return await