Coding task · NestJS course · Module 2: Routing and Request Lifecycle
Pipe in the Request Lifecycle
Create a validation pipe as the fourth stage of the pipeline.
Task
Write a LifecycleValidationPipe that parses a value to a number and throws BadRequestException if it's not a number