Click in order · NestJS course · Module 1: NestJS Basics

ValidationPipe Options

Arrange the syntax for activating ValidationPipe in main.ts:

Items to click

  • app
  • new ValidationPipe({
  • .useGlobalPipes(
  • whitelist: true
  • }))
Show the answer

Correct order:

  1. app
  2. .useGlobalPipes(
  3. new ValidationPipe({
  4. whitelist: true
  5. }))