NestJS DTO Schemas, Validation & Pipes Tutorial

Поділитися
Вставка
  • Опубліковано 4 лют 2025

КОМЕНТАРІ • 57

  • @rushingwp
    @rushingwp 10 місяців тому +6

    It is difficult to me to believe that you provide these rich in quality tutorials for free. Cheers, Dave.

  • @JonBrookes
    @JonBrookes Рік тому +2

    If I didnt know what DTO was I certainly do now, thanks Dave, this is another brilliant video
    your explanations of setting up strong types makes the job a breezed

  • @paulthomas1052
    @paulthomas1052 Рік тому +2

    Great series. I'm new to nestJS and have found these recent videos really useful. Thanks so much !

  • @Vedariy
    @Vedariy 5 місяців тому

    It's incredible to explain such complex things in so easy way! Awesome! Thank you 👍👍👍

  • @kirillzlobin7135
    @kirillzlobin7135 Рік тому +1

    So nicely explained without overcomplicating stuff

  • @aaaajuuu8653
    @aaaajuuu8653 Рік тому

    Hey Dave, thanks for the new Nest.js series. I actually just recently started learning Nest.js and its a big benefit for me having some actual examples from you.
    Thanks for that and i am looking forward to the next videos! :)

  • @konfcyus4865
    @konfcyus4865 Рік тому

    Thanks for the series.

  • @overrevvv
    @overrevvv Рік тому

    Thank you for putting so much time and effort into this amazing playlist.

  • @moathdw910
    @moathdw910 Рік тому

    The best series I am LOVING this series thank you for your efforts Dave! I love Nestjs it's my main framework now

  • @viniciusmassari5503
    @viniciusmassari5503 Рік тому +1

    I'm really impressed how nestjs handles so much thing for us with a few lines of code.

  • @purplewave146
    @purplewave146 3 місяці тому

    great tutorials! so clean and easy to understand. thank you!

  • @surajjha5623
    @surajjha5623 Рік тому

    I really loved this nest js series. Thanks a lot sir.

  • @mdabdullahmamun333
    @mdabdullahmamun333 25 днів тому

    really your explanation is beginner friendly.

  • @abdulziz5253
    @abdulziz5253 Рік тому

    I cant wait more for the next videos!

  • @TechnologyAndFinance
    @TechnologyAndFinance 6 місяців тому

    Great tutorial series, Dave!
    For roles validation, I believe, it could be handled better. Assume there are no users for a valid role like ADMIN, this will throw "User Role not found"

  • @lakshyarajdash
    @lakshyarajdash 2 місяці тому

    Great tutorial series on NestJS. I can easily move on from "ExpressJS" to "NestJS".
    I wanted to know the icon theme, that you are using in vscode.

  • @krishnawaske9798
    @krishnawaske9798 8 місяців тому

    Woaahhhh!!
    Been using NestJs for few time now.
    But learnt something new today. Thankyou

  • @kzxpr
    @kzxpr 10 днів тому

    Thanks for this great series! There's one thing that puzzled me: If the error handling for not found is handled by a HTTP exception, wouldn't it be more natural to have this in the controller than in the provider? At least, I could I imagine the provider being used in more cases, where the "not found" is not necessarily a 404 - whereas it makes sense that the endpoints returns an error in this special case.

  • @kirillzlobin7135
    @kirillzlobin7135 Рік тому

    Who knows how often videos are released for this Nest JS playlist?)
    Waiting for the next one...

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому +2

      Just released the next one 1 minute ago. The release schedule has been every week but I took one week off for Thanksgiving.

  • @gururajmoger8649
    @gururajmoger8649 Рік тому

    Please continue sir 🙏

  • @szczepanrydzewski8179
    @szczepanrydzewski8179 Рік тому

    Great video as always!

  • @danielouattara3857
    @danielouattara3857 Рік тому

    Hello Dave, Happy New Year! I wish you the best !
    Thank you for your teaching. It's great to learn with you
    Maybe that this is not the right place to ask... I find that if I make a "patch request" with an empty json object OR a json object with anything else than what describe in the "UpdateUserDto" class then it works. I know that there is the "extends PartialType(CreateUserDto)" on UpdateUserDto, meaning optional.
    Here my question: is there a way to model UpdateUserDto by saying: optional Yes ! but only among "name", "email" , "role" ?

  • @TravinskiyVladislav
    @TravinskiyVladislav Рік тому

    Thank you, Dave

  • @ЕкатеринаРыкова-г8т

    Great job! Thank you!

  • @Peter-ck1qg
    @Peter-ck1qg Рік тому

    Nice tutorial.
    Can we get a tutorial on microservices with express and nest after this series?

  • @codernerd7076
    @codernerd7076 Рік тому

    Oh no last video at comment time, home we soon get the next part, would be interested in a Nest.js API with a Next.js frontend project as well!

  • @podoprigoraisv
    @podoprigoraisv 8 місяців тому

    Thank you for the great tutorial. Do I understand right we have separate *.dto files due to convention one class per file instead to have one file users.dto.ts with all related classes?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  8 місяців тому

      Yes, this is the standard structure from the documentation.

  • @BrechtGijbels
    @BrechtGijbels 9 місяців тому

    Is there also a way to avoid the repetition of the roles in the method findAll within the file users.controller.ts? I was hoping it would be possible to use them from a DTO file, as they are defined there.

  • @kirillzlobin7135
    @kirillzlobin7135 Рік тому

    This is very helpful

  • @mrbilchalan
    @mrbilchalan Рік тому +3

    I have learned access token and refresh token technique from your Mern tutorial. Now, I am concerned about csrf token. The access and refresh token are all about authentication and authorization. I heard, when you send any form to server, try to validate csrf token also. My question is, is it necessary to use csrf token to be validate after applying your access token and refresh token technique. If it is then how to send and receive and validate it. Please consider to discuss it. Thank you.

    • @grant_vine
      @grant_vine Рік тому

      CSRF is more relevant to Cross Site (I.e. separate domain/url) requests as a form of point in time trust validation between two remote parties, so more applicable to auth styles where you are redirected to an auth service that is separate from your app. Access to secure domain cookies wouldn’t work in that case - however, if your front end and your API are all served from the same domain (or domain suffix but that isn’t as secure on a cookie level) then CSRF isn’t really relevant as both that api and front end can actually read that cookie as they are on the same domain - hence no need for an out of band trust verification.

  • @moho-z5x
    @moho-z5x Рік тому

    Can you explain me about hls in node js and front end i think this is so important

  • @theybecameus
    @theybecameus Рік тому

    thanks david❤

  • @girishgirijan9900
    @girishgirijan9900 9 місяців тому

    Thanks

  • @mikoajkaleta6856
    @mikoajkaleta6856 Рік тому

    waiting for more episodes

  • @adrien437
    @adrien437 Рік тому

    hi, are you going to make a tutorial about jwt authentication for nest?

  • @hasibrifat-p6v
    @hasibrifat-p6v Рік тому

    can u share the name of
    icon extentions of your vs code??

  • @thaivohong2503
    @thaivohong2503 3 місяці тому

    Hello, I am new to nestjs, can you explain why @nestjs/mapped-types will be install in devDependencies but not dependencies, thank you

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  3 місяці тому

      All types are truly dev dependencies. Types are tools for a developer and are removed when JS is compiled.

    • @thaivohong2503
      @thaivohong2503 3 місяці тому

      @@DaveGrayTeachesCode thank you, i never coded typescript before, so any dependencies that related to typescript should be dev dependencies, is it right

  • @codernerd7076
    @codernerd7076 Рік тому

    Would it not better to use Zod for validation?

  • @dinaludagedara5203
    @dinaludagedara5203 Місяць тому

    awesome

  • @thomaslefebvre5866
    @thomaslefebvre5866 Рік тому

    isn't it better to use implements instead of extends ?

  • @fikreteliyev2266
    @fikreteliyev2266 Рік тому

    Hi
    Access token save in httponly cookie and refresh in redis
    This is possible?

  • @artyomtaranenko2267
    @artyomtaranenko2267 Рік тому

    Nestjs-zod looks better, smaller. What r u think about this?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      I haven't looked at it although I know you can use Zod with NestJS.

  • @ZlatkoIliev-s4j
    @ZlatkoIliev-s4j Рік тому +1

    Hey Dave, whats going on with this course? It's been almost 2 weeks since last video. Are you planning to continue on the series?!?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  Рік тому

      Yes, new video tomorrow. To find out what's been going on, check out my community post on my channel.

  • @NadineMarinaRufRuna
    @NadineMarinaRufRuna Рік тому

    smone who wants to give assistsance ? stuck with media querys...

  • @artyomtaranenko2267
    @artyomtaranenko2267 Рік тому

    We need drizzle-orm)

  • @Shriramkrishnhari
    @Shriramkrishnhari Рік тому

    👍

  • @asadmehboob1300
    @asadmehboob1300 Рік тому

    Drizzle ORM