Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

NestJS DTO Schemas, Validation and Pipes Tutorial

Dave Gray via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn how to build data transfer object (DTO) schemas and validate incoming requests using NestJS pipes, class validators, and error handling in this comprehensive tutorial. Explore the importance of request validation, understand NestJS pipes, create DTO schemas, extend DTOs as partial types, and apply them effectively. Dive into class validators, implement ValidationPipe, and utilize built-in HTTP exceptions for robust error handling. Follow along with practical examples and gain valuable insights into improving your NestJS application's data integrity and security.

Syllabus

Intro
Welcome
Starter Code
Start the Server
Why We Need Request Validation
NestJS Pipes
Creating a DTO Schema
Extending a DTO as a Partial Type
Applying the DTOs
Class Validators
Applying ValidationPipe
Built-in HTTP Exceptions
Wrap-up

Taught by

Dave Gray

Reviews

Start your review of NestJS DTO Schemas, Validation and Pipes Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.