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:
- app
- .useGlobalPipes(
- new ValidationPipe({
- whitelist: true
- }))