NestJs REST API with MongoDB #3 - Pipes, Validation Error and more
Вставка
- Опубліковано 23 січ 2023
- Final Code:
github.com/ghulamabbas2/libra...
Complete In-Depth NestJs UDEMY Courses:
www.udemy.com/course/nestjs-b...
⚙️ Gadgets I use for Recording:
💻 Laptop - Macbook PRO M1 - 16/512
amzn.to/4eUqrSe
🎤 MIC - Samson Technologies Q2U USB/XLR Dynamic Microphone
amzn.to/3W9Z4wl
🖱️Mouse - Logitech G402 Gaming Mouse Hyperion Fury USB, Black
amzn.to/3RY4xUy
⌨️ Keyboard - Logitech K380 Multi-Device Bluetooth Keyboard
amzn.to/3RY4Fn0
🖥️ Monitor - UltraSharp 24-Inch Screen Led-Lit Monitor (U2419H)
amzn.to/4bxidN6
In this video, we will learn how we can handle errors, validation errors, how we can use pipes, and how we can handle mongoose ID errors in our NestJS API. In my previous video, I created a complete CRUD Library API.
In this video, we will continue with that project and add the error handling and validations in this API in simple few steps.
If you like this video make sure to subscribe and share, and stay tuned for more coding videos.
Your teaching style is fabulous
Thanks for something special tut 💚
The third one! Well done man!
Awesome sir, Your way of teaching is very good for beginners very easy to understand your content
Came here from your udemy shopit course it's a great and fun way to learn react. thankful for these kind of videos
Thank you Parikshith for your feedback, Glad you enjoy it!
thanks bro, amazing content, nest is easy do this type of validations
Thank You☺
This series is very helpful for me, sir please teach how to create custom pipes
Awesome Content Bro.. Please make a full clone project, Nest JS with production best practices. That is Sadqa Jaariya from your side.
thanks
Welcome
if its optional you don't want to put IsString() there.
If user enter any input then it should be string, otherwise user can leave it as it is optional.
Yes. But optional means that u can choose to give it. If u add string to it then its not optional.
@@KU10S Is optional to give it, but if you give it, should be string, is that simple.