Рет қаралды 12,064
Web Dev Roadmap for Beginners (Free!): 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.
💖 Support me on Patreon ➜ / davegray
⭐ Become a full-stack web dev with Zero To Mastery Courses:
- The Complete Node.js Developer: bit.ly/CompleteNodeJS
- Advanced React: bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
🚩 Subscribe ➜ bit.ly/3nGHmNn
📬 Course Updates ➜ courses.davegray.codes/
❓ Questions - Please post them to my Discord ➜ / discord
☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
👇 Follow Me On Social Media:
GitHub: github.com/gitdagray
Twitter: / yesdavidgray
LinkedIn: / davidagray
🔗 Source Code: github.com/gitdagray/nestjs-c...
🔗 Playlist for this NestJS Series: • NestJS Tutorials for B...
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: nestjs.com
🔗 Class Validators library: github.com/typestack/class-va...
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