NestJS - Pipes
Given this DTO and ValidationPipe setup, what will be the output when sending { "age": "25" } in the request body?
class UserDto {
@IsInt()
age: number;
}
// In controller
@Post()
create(@Body(new ValidationPipe({ transform: true })) user: UserDto) {
return typeof user.age;
}