NestJS with MongoDB & Mongoose - FULL BEGINNER TUTORIAL

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024

Комментарии • 69

  • @unhandledexception1948
    @unhandledexception1948 10 месяцев назад +4

    I really enjoy your videos as you are thinking out loud as you work out solutions to the various issues that come up...

  • @govindbhardwaj_
    @govindbhardwaj_ 7 месяцев назад +4

    I am moving from SpringBoot with MongoDB to NestJS with MongoDB. I've tried many videos so that I could relate with my previous knowledge and it is exactly what I was looking for. I've just seen the whole video and I must say it's the one perfect video to get started.👍

    • @ansonthedev
      @ansonthedev  7 месяцев назад

      Great to hear!

    • @Venkatesh-vm4ll
      @Venkatesh-vm4ll 4 месяца назад

      Why u move from spring boot to nest

    • @govindbhardwaj_
      @govindbhardwaj_ 4 месяца назад +1

      @@Venkatesh-vm4ll Well, first of all, hardware cost for Springboot app is higher, development is slower because compilation takes time. I work in both technologies though. For large scale projects I use Springboot and for small and medium I use nest.

    • @Venkatesh-vm4ll
      @Venkatesh-vm4ll 4 месяца назад

      @@govindbhardwaj_ for larger application u do u don't prefer nestjs

  • @yuripires9025
    @yuripires9025 11 месяцев назад +4

    I was just searching for a tutorial. Since I loved your Websocket tutorial, i can expect this to be another great vid. Cheers

    • @ansonthedev
      @ansonthedev  11 месяцев назад +1

      Hope you enjoy it! :)

  • @mehmetaliuyar3051
    @mehmetaliuyar3051 9 месяцев назад +1

    I think u are best javascript teacher in youtube . good job bro , thanks

    • @ansonthedev
      @ansonthedev  9 месяцев назад

      Thank you very much for saying that!

  • @ahmedmouad344
    @ahmedmouad344 12 дней назад

    Thank you so much Anson i really enjoyed it and learned how much easy is this.

  • @Lykkos-321
    @Lykkos-321 14 дней назад

    amazing Sir! it's helping me to adapt myself for the stack of the company where I'm working at, I have to learn stuff at record time and your video is saving my a***

  • @saniaAndFilipe
    @saniaAndFilipe 3 месяца назад

    bro ur course was very easy.. easily grasped the concepts.. also one thing was missing .env that i had to take gpt's help for but good work..keep it up

  • @sergeyplotnikov4303
    @sergeyplotnikov4303 10 месяцев назад +2

    It would be great if you made a video about clean architecture with NestJs

  • @esther44450
    @esther44450 6 месяцев назад

    Thanks a lot, I've got new skills now.

  • @MG-wx8yx
    @MG-wx8yx 6 месяцев назад

    I really like your videos, it's just that, currently, I'm only interested only in Graphql as opposed to REST. Could you specify in the titles if it's REST or Graphql? I watched one of your Nestjs and Graphql videos and I have to say I learned so much there. Thank you so much.

  • @СтасЕ-л9в
    @СтасЕ-л9в 8 месяцев назад

    nice video, nest is a bit overcomplicated sometimes, but for really big projects is very cool

  • @sergeyplotnikov4303
    @sergeyplotnikov4303 10 месяцев назад

    Very useful content! Thank you very much!

  • @rahulkumarbarnwal5978
    @rahulkumarbarnwal5978 7 месяцев назад

    It was a great tutorial. But if possible please provide the production ready setup it would be very helpful.

  • @alepaez3897
    @alepaez3897 8 месяцев назад

    Thanks! Very good tutorial I learned a lot. Just a question, wouldn't it be better in the one-to-many relationship to have the userId in the post. Instead of saving all posts ids in the user. Seems like updating a user is an extra query we don't need.

    • @ansonthedev
      @ansonthedev  8 месяцев назад

      We're not saving all post IDs in the user, that is just how TypeORM requires you to save one to many and many to one relationships.

  • @overrevvv
    @overrevvv 10 месяцев назад

    Thank you so much for this amazing video

  • @darlleybrito4198
    @darlleybrito4198 5 месяцев назад

    Para o user você adicionou uma validação (para encontrar um userId se ele existir) no controller, no Post você adicionou validação parecida mas dentro da Service, qual o local ideal para este tipo de validação?

  • @awaraamin6850
    @awaraamin6850 9 месяцев назад +1

    please do a full stack project using angular 17 and nestJs with mangoDB if it is doable! Thank you

  • @abirkolin4702
    @abirkolin4702 4 месяца назад

    Thanks a lot! so easier and understandable
    thanks

  • @frankameh257
    @frankameh257 4 месяца назад

    You are awesome. Thank you.

  • @mridhaacademy4593
    @mridhaacademy4593 Месяц назад

    very helpful, go ahead

  • @darlleybrito4198
    @darlleybrito4198 5 месяцев назад

    O meu User não trazia o Settings com o ".populate()" por nada... o erro estava no schema, "ref" estava "Ref" 😅
    ```
    @Prop({ type: mongoose.Schema.Types.ObjectId, Ref: 'UserSettings' })
    settings?: UserSettings
    ```

  • @ВладимирРадченко-о7е
    @ВладимирРадченко-о7е 8 месяцев назад

    Thank you! greate video!

  • @abdrahim9307
    @abdrahim9307 7 месяцев назад

    Thank you soo much

  • @prashlovessamosa
    @prashlovessamosa 11 месяцев назад

    Thanks for making this.

  • @nalcapital
    @nalcapital 11 месяцев назад

    Thank you. Very well!

  • @gorfadumesh326
    @gorfadumesh326 7 месяцев назад +2

    nest g resource users --no-spec
    User this command and create all the files like module, Dto, controller and service

  • @apple1697
    @apple1697 9 месяцев назад

    Hi, I have a question. Where we defined the id field?

    • @ansonthedev
      @ansonthedev  8 месяцев назад +1

      Depending on what your need is, the "id" field is autogenerated by the database. MongoDB will do that for each document by default. If you need additional unique ids you can define them in the schema/model file. Be sure to set the unique constraint too.

  • @pateltanaka49
    @pateltanaka49 11 месяцев назад

    great video , , iave a question , lets say on the posts i only want only want to populate the title only when doing a get request how do i do that

    • @ansonthedev
      @ansonthedev  11 месяцев назад +1

      Good question, see this: mongoosejs.com/docs/populate.html#setting-populated-fields

  • @josbexerr5166
    @josbexerr5166 5 месяцев назад

    Excelente muy bien explicado

  • @omarh.soliman6814
    @omarh.soliman6814 11 месяцев назад

    how are u writing with cursor that smooth can you tell whats the extention and also the terminal type

    • @ansonthedev
      @ansonthedev  11 месяцев назад +2

      It’s a setting in vs code called “smooth cursor”

  • @최인선-u1l
    @최인선-u1l 10 месяцев назад

    THANK YOU!

  • @awaraamin6850
    @awaraamin6850 11 месяцев назад

    Thank you man

  • @RlflrRLflr
    @RlflrRLflr 11 месяцев назад +1

    best video

  • @charlesorafu490
    @charlesorafu490 5 месяцев назад

    Thank you!!!!!!!!!!!!!!!

  • @sentinel435
    @sentinel435 6 месяцев назад

    thank you

  • @boss-rus
    @boss-rus 10 месяцев назад

    greate video! you are super :)

  • @phantazzor
    @phantazzor 5 месяцев назад

    what's the difference between @IsNotEmpty and @Prop({required:true}) and why we cannot see the user from the post

  • @selimolmaz2896
    @selimolmaz2896 9 месяцев назад

    thanks man🤌

  • @riyazmusics483
    @riyazmusics483 7 месяцев назад

    Nice one

  • @FilMartin-l4c
    @FilMartin-l4c 8 месяцев назад

    Thanks

  • @polymath-403
    @polymath-403 11 месяцев назад

    Sir What's Your VSCODE font name ?

  • @РоманПанчошный-н1м
    @РоманПанчошный-н1м 6 месяцев назад

    Дякую

  • @PedroHMelo
    @PedroHMelo 11 месяцев назад

    Agr sim ❤️

  • @sahakhovhannisyan1418
    @sahakhovhannisyan1418 8 месяцев назад

    👍

  • @Mugisama973
    @Mugisama973 2 месяца назад

    So we don't use prisma with mongoDB ... Ok

    • @ansonthedev
      @ansonthedev  2 месяца назад

      @@Mugisama973 ok….?

    • @Mugisama973
      @Mugisama973 2 месяца назад

      @@ansonthedev it’s cool without prisma to mongo

    • @ansonthedev
      @ansonthedev  2 месяца назад

      You can use MongoDB with anything.

  • @JayeshCholkar-v7v
    @JayeshCholkar-v7v Месяц назад

    Good vid but overcomplicated

    • @ansonthedev
      @ansonthedev  Месяц назад

      And what was complicated about it?