Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
@Inject(REQUEST) req: Request) { super(dataSource, req); } // Create multiple items async createItems(orderId: number, data: CreateItemDto[]) { const items = data.map((e) => { return { order: { id: orderId }, product: { id: e.productId }, quantity: e.quantity, } as Item; }); await