Mongoose Crash Course - Beginner Through Advanced

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • FREE MongoDB Cheat Sheet: webdevsimplified.com/mongodb-...
    Mongoose is the best way to work with a MongoDB database in Node.js, but it is a pretty complex library. In this video I will explain absolutely everything you need to know about Mongoose including even the more advanced features that other tutorials don't cover.
    📚 Materials/References:
    FREE MongoDB Cheat Sheet: webdevsimplified.com/mongodb-...
    MongoDB Crash Course: • MongoDB Crash Course
    Node.js Install Video: • Your First Node.js Web...
    Async/Await Video: • JavaScript Async Await
    Async/Await Article: blog.webdevsimplified.com/202...
    🌎 Find Me Here:
    My Blog: blog.webdevsimplified.com
    My Courses: courses.webdevsimplified.com
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/WebDevSimplified
    CodePen: codepen.io/WebDevSimplified
    ⏱️ Timestamps:
    00:00 - Introduction
    00:30 - Mongoose basics
    08:40 - Schema Types
    12:42 - Schema Validation
    18:55 - Query Basics
    24:04 - Schema Methods/Virtuals
    30:12 - Schema Middleware
    #Mongoose #WDS #MongoDB

Komentáře • 445

  • @centrumsaiyan7623
    @centrumsaiyan7623 Před rokem +175

    Came here after your MongoDB crash. Man, I just want to let you know, you have taken so many extra miles to give your viewer nothing but your absolute best. I'm glad I am spending hours from my life watching your content. Thank you for your service, Kyle.

  • @Berkeli
    @Berkeli Před 2 lety +47

    This is a goldmine, this video has got to have the highest value per second watched ever. Thank you Kyle! I'm not even kidding when I say you answered some of the questions that keep me awake at night in a 30 Min video

  • @mdirshath4174
    @mdirshath4174 Před 2 lety +12

    I love your crash course series, whenever I forget about anything I straight away check your videos to get started. Thank you so much.

  • @jhunter34
    @jhunter34 Před rokem +1

    I've watched a number of your videos, you have a real knack for getting straight to heart of how things work, and how to use them. Many thanks my friend!

  • @SafaKadir
    @SafaKadir Před rokem +2

    I love the way you explain everything simple and clear. Also you're not passing the advanced topics, instead explaining them really good which is awesome. Thanks

  • @mrumidjontv6235
    @mrumidjontv6235 Před rokem +3

    Saying "Thank you" is not enough for your effort. You are amazing mentor on youtube ever!!! God bless you, bro. Keep goin!!!

  • @dave6012
    @dave6012 Před 2 lety +62

    This should be a whole series! You could flesh out each of those concepts into real world scenarios. Much appreciated for filling the gaps in my mongoose acumen 🙌

  • @guillegt7983
    @guillegt7983 Před 2 lety +7

    Kayle, once again, an incredible tutorial. Congratulations. An excellent work. Your tutorials are helping me a lot in my new job where I´m developing basic apps with MEAN stack. I haven´t got a formal education in this topic and your work help tremendously. Thank you very much for shearing you knowledge. How I´d wish to program the way you do !!!! :) Thanks again from Argentine. Best regards Guille.

  • @tech3425
    @tech3425 Před rokem

    You really convey so much in so little time! I saw your MongoDB course earlier, that one was the same thing! Nice to have a concise resource like yours. You can watch one vid and be confident that you are aware of most of the capabilities of the software.

  • @spreadItWide
    @spreadItWide Před 2 lety +66

    Kyle always reading minds! I was just taking a break from brushing up on mongoose! Lol just spent 20 minutes trying to update an item in a nested array, I made it wayyyy harder than it really was... but I'll just brush up with this video now. Thank you my man!

    • @mrdoner3451
      @mrdoner3451 Před 2 lety +1

      its ok, i still cant write a for loop from memory.

    • @spreadItWide
      @spreadItWide Před 2 lety +1

      @@mrdoner3451 lol as long as we can get to stackoverflow!

    • @zakariaabdi6197
      @zakariaabdi6197 Před 2 lety

      @@mrdoner3451 me same

    • @N451M4K
      @N451M4K Před 2 lety

      its google reading your brain

    • @lie456890
      @lie456890 Před rokem

      @@mrdoner3451 😀

  • @CodeWithSahand
    @CodeWithSahand Před 2 lety +36

    This is an excellent video.
    Just enough information to get you started. 👌

  • @daydreamical
    @daydreamical Před rokem

    Very straightforward and well-paced guide covering a lot of stuff with explained examples. Thanks a ton!

  • @themixmaster
    @themixmaster Před 2 lety +1

    Thank you very much, I was looking for a good mongoose tutorial, and now I'm very lucky that my favorite teacher posted a new video on this topic!

  • @mosabama
    @mosabama Před 2 lety +2

    Best Mongoose tutorial. Fast and to the point amd talks about almost everything. Thank you.

  • @kllokoq
    @kllokoq Před 2 lety +23

    Another way to add createdAt and updatedAt, is to just add a second argument to Schema( ), an object with a property timestamps set to true! Fantastic tutorial!

  • @alirida3428
    @alirida3428 Před 6 měsíci +1

    This is my first time using mongoose and this video gave me everything I needed even though I had no prior knowledge. ABSOLUTE BEST, keep up the good work man!!

  • @ckiv1992
    @ckiv1992 Před rokem

    definitely needed this. I've been so lost on the mongodb, node, and express thing due to not fully understanding mongoose. You the mvp webdev 👍👍👍

  • @sunilanthony17
    @sunilanthony17 Před 2 lety +3

    Your teaching skill is awesome. Love it, wish I was more involved on the front end and using NoSQL.

  • @Ninjaphil24
    @Ninjaphil24 Před rokem +2

    Truly excellent work. I took your mongoDB course as well. You've been such a help generally!!

  • @gregudogu7079
    @gregudogu7079 Před 2 lety

    Thank you Kyle.
    I was working on a project and ran into some issues.
    Grateful I bumped into this video.

  • @adiemar3974
    @adiemar3974 Před 2 lety

    again, what a very great lesson. everything you need to get started all packed in this simple short video.

  • @karenavdalyan3647
    @karenavdalyan3647 Před 2 lety

    This is one of the best tutorials I have ever watched)) The speed of explanation is also fantastic

  • @ShuAbLe
    @ShuAbLe Před rokem

    Thanks for the tutorials. I've started here, gone back to another video you referenced about async await, gone back from there again to another video you referendec about promises, then back to here and it's all making sense to me right now. I can't believe I went through an entire udemy "complete web development" course without learning about async and promises.

  • @shash0_0
    @shash0_0 Před 4 měsíci

    So much value packed in one video, it's unreal. Thank you for this.

  • @tesla1772
    @tesla1772 Před 2 lety +20

    Momgoose schema also provides an timestamp option which when set to true creates createdAt and updatedAt property on its own

  • @bonnieowens9531
    @bonnieowens9531 Před 2 lety

    Every one of your videos that I watch help me break through my coding walls. Thanks for your content!

  • @aryankhullar7101
    @aryankhullar7101 Před 2 lety

    Needed this since a long time , many tutorials were a bit outdated. Thank you!

  • @adriankaiser4642
    @adriankaiser4642 Před rokem

    Excellent video! The content was delivered clearly and concisely! Thank you!

  • @ali-celebi
    @ali-celebi Před 2 lety

    Very good content covering all the fundamentals of Mongoose. Thanks a lot!

  • @pretor89
    @pretor89 Před 2 lety

    Yes!! This is the video I’ve been looking for! Thank you

  • @zamap4278
    @zamap4278 Před rokem

    I've been doing FCC's backend course but I really had no idea how to handle saving models or anything in their entire mongoose unit. I'm glad I have your videos though, I love the way you teach bro

  • @Sapphiamur
    @Sapphiamur Před 2 lety +1

    Amazing explanations, thank you so much :)!!

  • @akremevolution4459
    @akremevolution4459 Před 2 lety +42

    Best mongoose crash course on the internet and even better than a complete course that I took on Udemy. Thank you Kyle

  • @Virtualexist
    @Virtualexist Před rokem

    Very nice tutorial. I had to watch it in 0.8x to actually let things percolate in mind! It is amazing how someone is so intelligent, good looking, eloquent and so much more at the same time. You earned a subsriber and a fan sir!

  • @p._7555
    @p._7555 Před rokem

    So focus, right to the point, so didactic and with the perfect timing dude👏👏👏

  • @hadipawar2539
    @hadipawar2539 Před 2 lety +1

    really looking forward to a Sequelize crash course! once again . awesome job!

  • @anikstudy9507
    @anikstudy9507 Před 2 lety

    Loved the fact that the cheat sheet has both Dark and Light version. Thanks a lot!

  • @shreyanshmishra31
    @shreyanshmishra31 Před 2 lety +2

    This was really an amazing and insightful video Kyle. Thank you for your efforts.
    Can you please make a video on how to connect front-end (using React) with back-end (using Express.js and mongoose). Would really appreciate it.

  • @2029leandro
    @2029leandro Před rokem

    So well explained! Thank you for this, I can now start using mongoose in my projects!

  • @rajamuhammadasher
    @rajamuhammadasher Před 2 lety

    Perfectly summarized. Good work Kyle

  • @rakshitkathawate8838
    @rakshitkathawate8838 Před 2 lety

    thanks, it was really good and quick overview before interview or even before starting out new project. Keep it up

  • @ueslialmeida306
    @ueslialmeida306 Před 2 lety

    Always impressive! Many thanks, Kyle!

  • @karanjotsandhu237
    @karanjotsandhu237 Před 2 lety +1

    Thanks Kyle for saving my time...great stuff as always..can you please make a video on aggregation framework and how to use it in mongoose?

  • @Max-tq1ig
    @Max-tq1ig Před 2 lety

    So straightforward, even at the end XD
    Thank you very much!

  • @MilanTiwariMessi
    @MilanTiwariMessi Před 2 lety

    I was looking for exactly this. Thanks Kyle.

  • @adnanahmad1062
    @adnanahmad1062 Před 2 lety

    Kayle, once again, an incredible tutorial. Congratulations. An excellent work. Your tutorials are helping me a lot in my new projects. I haven´t got a formal education in this topic and your work help tremendously. Thank you very much for sharing your knowledge. Thanks again from pakistan. thanks and Best regards Adnan.

  • @jatinvashisht4293
    @jatinvashisht4293 Před 2 lety

    just completed the course: Hands down the best course I ever encountered on mongoose

  • @germanromanoa
    @germanromanoa Před 2 lety

    Gracias!!!! Estaba luchando con errores, debido a que el curso que estaba siguiendo tenia versiones anteriores, Gracias nuevamente!

  • @Rel3D
    @Rel3D Před 3 měsíci

    Thank you so much for your work! Keep up the great effort we all really appreciate it!!!❤❤❤

  • @joybangla71-j8y
    @joybangla71-j8y Před 8 měsíci

    You're amazing Kyle, thank you for these free resources bro

  • @NivBarchechet
    @NivBarchechet Před rokem +1

    Kyle thanks alot , you are a great guy ! . simple explantion .

  • @cold_
    @cold_ Před 11 měsíci +1

    Nice video Kyle, your were really cooking with this video.

  • @MiSt3300
    @MiSt3300 Před 2 lety

    Just what I've been waiting for!

  • @j0n4321gogo
    @j0n4321gogo Před rokem

    Great crash course on mongoose Kyle! Learned a lot today. Love your way of explanation. Would be fantastic if you could do one on m:n relations - creation and queries in mongoose! Thanks anyway!!

  • @alexanderst.7993
    @alexanderst.7993 Před rokem

    god bless you man, seriously you are probably the reason i got into web dev to begin with!

  • @gptwisdomtalks
    @gptwisdomtalks Před 2 lety

    Your videos are amazing brother , Simplified they are!

  • @samarpansuvaris753
    @samarpansuvaris753 Před rokem

    Thank you so much Kyle. You have explained very well & Thanks for cheat sheet too.

  • @aram5642
    @aram5642 Před 2 lety +1

    That was a good piece of advice to always use save and create in order to keep the validation middleware active. But this makes it a bit cumbersome for PATCH requests where requests carry only partial payloads and you want to leave the rest unchanged.

  • @daveperry7179
    @daveperry7179 Před 2 lety

    Thanks Kyle, fantastic as always

  • @mrdaho11
    @mrdaho11 Před 2 lety

    your cheat sheet is extremely helpful ! I recommend it to everyone!! thanks for that free gift ! I'm slowly falling in love here xD keep up the great work!

  • @alexbalak7558
    @alexbalak7558 Před 2 lety

    My head just exploded with so much knowledge !
    Thanks for the tutorial 👍
    Will watch it bunch of times to get all of it.
    How do you remember all of it ? (So much information)

  • @johnt.5646
    @johnt.5646 Před rokem +1

    Fantastic effort and work for this video!!
    Nice

  • @tarekcoates7701
    @tarekcoates7701 Před 2 lety

    I was stuck on this specific topic for so long and couldn't find the information until now, thank you so much!

  • @VIJAYKUMAR-ff1wo
    @VIJAYKUMAR-ff1wo Před 9 měsíci

    loved it, advanced topics have been covered with ease❤❤❤

  • @liampugh4705
    @liampugh4705 Před 2 lety

    Awesome timing bringing this out

  • @Abdallah_Ismail
    @Abdallah_Ismail Před rokem

    OMG I love your channel man LOVE it

  • @anuragkushwaaha2091
    @anuragkushwaaha2091 Před 9 měsíci

    Just what I have been looking for !

  • @rishabsharma5307
    @rishabsharma5307 Před 2 lety +1

    Great video 🔥🔥 thank you so much!

  • @manoj-k
    @manoj-k Před 2 lety

    🔥🔥🔥
    Nobody covered this topic which is very important. Thank you

  • @krishnasudan3410
    @krishnasudan3410 Před 2 lety +1

    Literally I was just going to learn mongoose. 💓💕Thanks

  • @shinmini99
    @shinmini99 Před rokem

    I've always appreciate you Kyle. you are really awesome;

  • @saadarman4718
    @saadarman4718 Před 8 měsíci

    Great one. So much content in this half hour video.

  • @mdmoazshamim4155
    @mdmoazshamim4155 Před 2 měsíci

    Thanks Kyle for this wonderful Mongoose Crash Course ❣

  • @TegemeaLema
    @TegemeaLema Před 2 lety +1

    Thank you man, cool enough to love Mongoose & MongoDB more..!

  • @r3born744
    @r3born744 Před 2 lety

    Great tutorial thank you!. Also cheat sheet awesome too.

  • @ouihui
    @ouihui Před 2 lety

    I wish you were my professor in college 😩 better late than never. Thanks for this tutorial! Super helpful!

  • @nisargjoshi8236
    @nisargjoshi8236 Před rokem

    Damnn! That was a lot of good info just 30 mins! Thanks a ton!

  • @atg1203
    @atg1203 Před 2 lety

    Great stuff Kyle!

  • @jocelyn-n-tech
    @jocelyn-n-tech Před rokem

    Dang this was a really good tutorial!!!! Well done sir.

  • @AyushSachan2211
    @AyushSachan2211 Před 2 lety

    Very much needed. Thanks a lot.

  • @nguyentoanhnt
    @nguyentoanhnt Před rokem

    Great course. Thank you so much!

  • @user-xe7nr1vi6z
    @user-xe7nr1vi6z Před 11 měsíci

    You earned our respect bruh, thank you for this amazing content

  • @ejikeezekwunem4162
    @ejikeezekwunem4162 Před 2 lety

    What a great video tutorial. Thank you sooo much.

  • @user-sx9ge4vn4h
    @user-sx9ge4vn4h Před 2 lety

    Best mongoose course on CZcams!!!!

  • @gogencheg
    @gogencheg Před rokem

    Wow, So cool. Can save so much time. Also cheat sheet.
    THanks! keep it up

  • @romankryzhanovskyi9245

    Thank you for such a useful guide!

  • @fazilabano1309
    @fazilabano1309 Před 8 měsíci

    Brilliant🌟, you have cleared my concepts

  • @emperoralthaf6264
    @emperoralthaf6264 Před 2 lety +6

    Hi Kyle that's awesome!. Can you make one video on advanced mongodb modelling, aggregation, and advanced topics like realm, datalake.. ? Thank you!

  • @rudolfferenckovacs812

    Great crash course, thank you!

  • @mouradMsaken
    @mouradMsaken Před 5 měsíci +1

    Thank you for this great video!
    I would like to add a comment about the difference between virtual methods and regular methods : both provide ways to add functionality to Mongoose schemas. Virtual methods are mainly used for defining computed properties, while regular methods are used for defining reusable functionality (in this video it was displaying a log message).

  • @user-dv5ys2on9s
    @user-dv5ys2on9s Před měsícem

    小伙长的真帅,感谢您的分享,让我快速的了解了mongoose.

  • @poppin_party
    @poppin_party Před rokem

    this vid saved me a lot of time getting into mongoose, tks!!

  • @matissjudins6272
    @matissjudins6272 Před 2 lety

    thx for the videos man, really helpful

  • @rentianxiang92
    @rentianxiang92 Před 2 lety

    Thank you so much!!! great work for teaching me mongoose!!!

  • @blendercgiart
    @blendercgiart Před 8 měsíci

    Great and direct to the point video...Keep it up

  • @remoralite6027
    @remoralite6027 Před rokem

    Brilliant! Thanks for this :)

  • @Lost1nTranslation
    @Lost1nTranslation Před 2 lety

    This is awesome, thank you!

  • @aritradas8606
    @aritradas8606 Před 2 měsíci

    next level stuff! this guy is something!

  • @ridl27
    @ridl27 Před 2 lety

    what a tutorial! so now we need one on Sequelize for sure!!! :)

  • @saurabhshukla2605
    @saurabhshukla2605 Před 2 lety

    Amazing, it's a full course in half and hour.👍👍👍