Skip to content

NestJs Notes

Guides lead a user through a specific task they want to accomplish, often with a sequence of steps. Writing a good guide requires thinking about what your users are trying to do.

Validation

app.useGlobalPipes(
new ValidationPipe({
whitelist: true, // Removes extra properties
forbidNonWhitelisted: true, // Will give error if extra property is given
transform: true,
})
)

NestJs package @nestjs/mapped-types

Further reading