Put in order · NestJS course · Module 2: Routing and Request Lifecycle
Introduction: Using ValidationPipe in an Endpoint
Arrange the elements of using ValidationPipe in a controller method:
Items to put in order
- tribute: CreateTributeDto)
- ValidationPipe)
- createTribute(@Body(
Show the answer
Correct order:
- createTribute(@Body(
- ValidationPipe)
- tribute: CreateTributeDto)