Basic validation
Let's add basic rules for the incoming data.
nest g mo common{
provide: APP_PIPE,
useValue: new ValidationPipe(),
}yarn add class-validator class-transformer@IsString()
readonly name: string;Last updated
Let's add basic rules for the incoming data.
nest g mo common{
provide: APP_PIPE,
useValue: new ValidationPipe(),
}yarn add class-validator class-transformer@IsString()
readonly name: string;Last updated