//to set it globally in a nest application app.useGlobalPipes( new ValidationPipe({ whitelist: true, }), );