Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
@UseInterceptors(TransactionInterceptor) async createOrder( @Body(new ParseArrayPipe({ items: CreateItemDto })) data: CreateItemDto[], ) { return await this.ordersService.createOrder(data); } } As we can see, orders controller exposes 2 endpoints: GET /orders POST /orders These endpoints will be