docs.nestjs.com/techniques/validation
2 Users
0 Comments
13 Highlights
0 Notes
Tags
Top Highlights
PartialType()
you can't use a type-only import as that would be erased at runtim
Validation
validate the correctness of any data sent into a web application
automatically validate incoming requests, Nest provides several pipes available right out-of-the-box:
ValidationPipe
powerful class-validator package and its declarative validation decorators
provides a convenient approach to enforce validation rules for all incoming client payloads
Overview
Auto-validation
thus ensuring all endpoints are protected from receiving incorrect data.
TypeScript does not store metadata about generics or interfaces, when you use them in your DTOs
Validation
Glasp is a social web highlighter that people can highlight and organize quotes and thoughts from the web, and access other like-minded people’s learning.