Coding task · NestJS course · Module 1: NestJS Basics
ValidationPipe Configuration
Configure global validation with the whitelist and transform options.
Task
In main.ts, write a setupValidation(app) function that enables global validation in the application: it calls app.useGlobalPipes() with a new ValidationPipe whose whitelist and transform options are set to true.