DEV Community

Discussion on: Validating numeric query parameters in NestJS

Collapse
 
mynameisdu profile image

Good article. I read all your articles on validation. And I have an ideas. I think if want to validate numeric,should use ParseIntPipe, it will transform and if it isn't a number it will throw error

Collapse
 
avantar profile image
Krzysztof Szala

The main point of my approach is to have the whole validation process in one place :)