Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

In this NestJS DTO schemas, validation & pipes tutorial, we will build data transfer object (DTO) schemas and learn how to validate incoming requests with NestJS pipes, class validators and error handling.

⭐ Become a full-stack web dev with Zero To Mastery Courses:
- The Complete Node.js Developer: https://bit.ly/CompleteNodeJS
- Advanced React: https://bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

Subscribe https://bit.ly/3nGHmNn

Course Updates https://courses.davegray.codes/

Questions - Please post them to my Discord https://discord.gg/neKghyefqh

Buy Me A Coffee https://www.buymeacoffee.com/davegray

Follow Me On Social Media:
GitHub: https://github.com/gitdagray
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/

Source Code: https://github.com/gitdagray/nestjs-course

Playlist for this NestJS Series: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6MexSAh5x1R3rU6Mg2zYBVr

NestJS DTO Schemas, Validation & Pipes Tutorial - Series Part 4

(00:00) Intro
(00:05) Welcome
(00:27) Starter Code
(00:44) Start the Server
(01:12) Why We Need Request Validation
(02:06) NestJS Pipes
(05:36) Creating a DTO Schema
(07:48) Extending a DTO as a Partial Type
(11:40) Applying the DTOs
(14:56) Class Validators
(19:53) Applying ValidationPipe
(24:08) Built-in HTTP Exceptions
(28:51) Wrap-up

Tutorial References:
NestJS Official Site: https://nestjs.com
Class Validators library: https://github.com/typestack/class-validator#validation-decorators

Was this NestJS DTO schema validation tutorial for beginners helpful? If so, please share. Let me know your thoughts in the comments.

#nestjs #dto #validation