Nestjs, Transactions, Dependency Injection, Repository Pattern, Repository Design Pattern.
import { IsNumber } from 'class-validator'; export class CreateItemDto { @IsNumber() productId: number; @IsNumber() quantity: number; } Lastly, we have orders repository where we can get all the orders and we can also create an order given the orderNo. Entities Now it’s time to talk about entities.