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:

  1. createTribute(@Body(
  2. ValidationPipe)
  3. tribute: CreateTributeDto)