NestJs - Pipes & Validation [07]

  Рет қаралды 3,605

Computerix

Computerix

Күн бұрын

Пікірлер: 21
@omarps6622
@omarps6622 11 ай бұрын
I hope you continue. I have not found anyone better than you in explaining and simplifying concepts. Even though before watching your lessons I read the documentation, but you always add something new for me, whether I did not understand it sufficiently or neglected to understand it.
@Computerix
@Computerix 11 ай бұрын
I'm really happy I'm able to help! And I'm confident you'll enjoy the multitenancy and best practices videos after the series :)
@omarps6622
@omarps6622 11 ай бұрын
@@Computerix Very excited to get there, I'm sure I'll see something great 💫
@quang.luu.179
@quang.luu.179 10 ай бұрын
Hei I love the way you make the chapters out of the video. Really easy to follow.
@Computerix
@Computerix 10 ай бұрын
I'm glad !
@algorfernand2483
@algorfernand2483 Жыл бұрын
I have really loved this series, I would love it more if you continued on testing.
@Computerix
@Computerix Жыл бұрын
Thank you! I'm confident you will enjoy the rest of the series, inluding multitenancy and caching with redis :)
@juliusngwu
@juliusngwu Жыл бұрын
You are a born teacher. Thank you
@Computerix
@Computerix Жыл бұрын
Thanks !
@brytebee1
@brytebee1 Жыл бұрын
I couldn't resist commenting😏You're an amazing creator. Thanks for this content/video.
@Computerix
@Computerix Жыл бұрын
Thank you!
@lclkn
@lclkn 6 ай бұрын
thank you very much!
@bmxandcode
@bmxandcode Жыл бұрын
thanks for this video, I have a question, at the minute 17:40 when you show the error message, how do I get these errors messages in the HttpExceptionsFilter
@bmxandcode
@bmxandcode Жыл бұрын
at find it, at the exception.response object, thanks
@Computerix
@Computerix Жыл бұрын
If you want more details about the custom http exception filter, feel free to watch this episode kzbin.info/www/bejne/d4jUoppvedmhmZY :))
@MohamedSaqr
@MohamedSaqr Жыл бұрын
Thanks. Excellent explanations for the pipes.🙏🙏 I have a question: When should I use DTOs or JOI schema?
@Computerix
@Computerix Жыл бұрын
Thanks for the comment ! It comes down to personal preference. Using DTOs is more strongly typed and can provide better integration with NestJS, it not only provide validation for the request payload (if you are using the class-validator class with it of course), but also helps you by setting constraints on the data you transfer (typescript would complain if you try to send a Person object instead of a Produt object for example) .It's always better to use specific types for your data rather than "any" for example. If you are familiar with Joi and know it well, you can use it to provide complex validation to your request payload. I personally go with Joi for my validation because I am used to creating complex validation with different conditions using it. BUT, I also use DTOs (without the class-validator) to specify types and add constraints in my code (typescript would complain if I do not respect the DTOs when passing data from one place to another). If you haven't used Joi much before, I recommend you go with DTO + class-validator. If you're comfortable with Joi and have used it for complex validation with different conditions (not just basic types..) and would like to use it, then go for it to validate the request +use DTOs as well (for typescript) without the class-validator. But it really is a personal choice at the end of the day :) I hope this helps!
@MohamedSaqr
@MohamedSaqr Жыл бұрын
@@Computerix Thanks for the detailed response; I will go with DTO + class-validator. When anytime I need complex validation, I will use JOI. Thanks for your help
@badralwattar5799
@badralwattar5799 8 ай бұрын
Thank you for the videos 🫶🏻. Could you please use postman’s dark theme? ☠️
@Computerix
@Computerix 8 ай бұрын
Dark mode feels weird on postman 😭
NestJs - Guards & Authentication & Authorization [08]
33:05
Computerix
Рет қаралды 12 М.
NestJs - Best Practices + Implementations
22:26
Computerix
Рет қаралды 10 М.
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
I Sent a Subscriber to Disneyland
0:27
MrBeast
Рет қаралды 104 МЛН
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
NestJS DTO Schemas, Validation & Pipes Tutorial
29:48
Dave Gray
Рет қаралды 22 М.
Zod: валидация Nestjs и контракты для React
17:06
PurpleSchool | Anton Larichev
Рет қаралды 8 М.
How to use Dynamic Modules in NestJS with Stripe
14:21
Harrison Milbradt
Рет қаралды 16 М.
NestJs Microservices with RabbitMQ
23:21
Computerix
Рет қаралды 20 М.
Multitenancy in NestJS + Mongoose
41:48
Computerix
Рет қаралды 9 М.
NestJs - Service Providers & Dependency Injection [03]
27:37
Computerix
Рет қаралды 5 М.
Building a Scalable Queue System with NestJS & BullMQ & Redis
45:17
NestJs - Exception Filters [06]
21:18
Computerix
Рет қаралды 6 М.
100% Reliable LLM Outputs with Structured Data (Developer Tutorial)
32:02
AI Software Developers
Рет қаралды 4,5 М.