Mongoose Crash Course - Beginner Through Advanced

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 451

  • @centrumsaiyan7623
    @centrumsaiyan7623 2 ปีที่แล้ว +201

    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.

    • @cm-a-jivheshchoudhari9418
      @cm-a-jivheshchoudhari9418 ปีที่แล้ว +2

      same lmao

    • @wisdomsamuel-pe2fm
      @wisdomsamuel-pe2fm ปีที่แล้ว

      ❤❤❤

    • @immiketyson
      @immiketyson 9 หลายเดือนก่อน +3

      He is the only guy that makes our TH-cam screentime actually usefull, so it doesn't count as gen z screen time

    • @thiagovilla970
      @thiagovilla970 2 หลายเดือนก่อน

      @@immiketyson haha good one!!

  • @kllokoq
    @kllokoq 3 ปีที่แล้ว +26

    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!

  • @mrumidjontv6235
    @mrumidjontv6235 ปีที่แล้ว +3

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

  • @spreadItWide
    @spreadItWide 3 ปีที่แล้ว +70

    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 3 ปีที่แล้ว +1

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

    • @spreadItWide
      @spreadItWide 3 ปีที่แล้ว +1

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

    • @zakariaabdi6197
      @zakariaabdi6197 3 ปีที่แล้ว

      @@mrdoner3451 me same

    • @N451M4K
      @N451M4K 3 ปีที่แล้ว

      its google reading your brain

    • @lie456890
      @lie456890 2 ปีที่แล้ว

      @@mrdoner3451 😀

  • @Berkeli
    @Berkeli 2 ปีที่แล้ว +53

    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 3 ปีที่แล้ว +15

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

  • @tesla1772
    @tesla1772 3 ปีที่แล้ว +24

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

  • @dave6012
    @dave6012 3 ปีที่แล้ว +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 🙌

    • @yonatansagi2245
      @yonatansagi2245 2 ปีที่แล้ว

      WŴQaQawWWAa2w2Aŵwqawaŵwqw 2qwa

  • @akremevolution4459
    @akremevolution4459 2 ปีที่แล้ว +43

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

  • @alirida3428
    @alirida3428 10 หลายเดือนก่อน +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!!

  • @jhunter34
    @jhunter34 ปีที่แล้ว +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!

  • @ShuAbLe
    @ShuAbLe 2 ปีที่แล้ว

    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.

  • @mosabama
    @mosabama 2 ปีที่แล้ว +2

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

  • @SafaKadir
    @SafaKadir ปีที่แล้ว +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

  • @shash0_0
    @shash0_0 8 หลายเดือนก่อน

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

  • @CodeWithSahand
    @CodeWithSahand 3 ปีที่แล้ว +38

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

  • @chinmayghule8272
    @chinmayghule8272 ปีที่แล้ว +1

    So, I'm using "mongoose": "^6.9.0", and these were the things I've encountered:
    Mongoose implicitly type casts while enforcing it's schema. Thus, if a name field is of [type: String], and you enter [name: 4], where 4 is a number, there won't be any errors, since mongoose will typecast 4 to "4".
    We can add [cast: false] to each field while defining the schema to tell mongoose that we don't want it to type cast it.
    After doing this you might get an error for the [createdAt] field, (if you are following the tutorial exactly). Here you might want to change the arrow function, from [() => Date.now()] to [() => new Date()]. The former gives you the total time passed from 1970 in seconds or something, and the latter gives you the date in standard format. (typeof Date.now() === 'Number')
    Also note that mongoose doesn't save the fields that are not present on the schema definition.

  • @jatinvashisht4293
    @jatinvashisht4293 2 ปีที่แล้ว

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

  • @zamap4278
    @zamap4278 ปีที่แล้ว

    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

  • @bonnieowens9531
    @bonnieowens9531 2 ปีที่แล้ว

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

  • @anikstudy9507
    @anikstudy9507 2 ปีที่แล้ว

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

  • @ckiv1992
    @ckiv1992 2 ปีที่แล้ว

    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 👍👍👍

  • @mouradMsaken
    @mouradMsaken 9 หลายเดือนก่อน +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).

  • @gregudogu7079
    @gregudogu7079 2 ปีที่แล้ว

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

  • @paolodt7588
    @paolodt7588 3 ปีที่แล้ว

    just what i was willing to learn today ... you're a master ... just don't rush ... our first language is not always english ... is already difficult to learn programming ... tx for u effort

    • @nextentrepreneur9288
      @nextentrepreneur9288 3 ปีที่แล้ว +1

      He can't make everybody fit in, you'll need to develop your english ear more

  • @tarekcoates7701
    @tarekcoates7701 2 ปีที่แล้ว

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

  • @themixmaster
    @themixmaster 3 ปีที่แล้ว +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!

  • @Virtualexist
    @Virtualexist ปีที่แล้ว

    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!

  • @NoomMunsri
    @NoomMunsri ปีที่แล้ว

    Your speech is rapid for a non-native English speaker, but the information provided is highly valuable.

  • @djchepkuta
    @djchepkuta 2 ปีที่แล้ว

    Kyle is an alien😀😀😀😀. He knows everything in coding coz i follow this channel

  • @Ninjaphil24
    @Ninjaphil24 ปีที่แล้ว +2

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

  • @guillegt7983
    @guillegt7983 3 ปีที่แล้ว +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.

  • @Raza007-ty3bd
    @Raza007-ty3bd 5 หลายเดือนก่อน

    Small love from Pakistan hatsoff to you Sir!

  • @aram5642
    @aram5642 2 ปีที่แล้ว +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.

  • @sunilanthony17
    @sunilanthony17 3 ปีที่แล้ว +3

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

  • @きゅうとう-o6w
    @きゅうとう-o6w 2 ปีที่แล้ว

    Best mongoose course on TH-cam!!!!

  • @alexanderst.7993
    @alexanderst.7993 ปีที่แล้ว

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

  • @aryankhullar7101
    @aryankhullar7101 3 ปีที่แล้ว

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

  • @karenavdalyan3647
    @karenavdalyan3647 2 ปีที่แล้ว

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

  • @李俊奇-d3o
    @李俊奇-d3o 5 หลายเดือนก่อน

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

  • @p._7555
    @p._7555 ปีที่แล้ว

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

  • @tech3425
    @tech3425 2 ปีที่แล้ว

    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.

  • @zodywoolsey
    @zodywoolsey ปีที่แล้ว

    Thank you so much for having these guides on youtube for free. I have been in hell for the past 3 days trying to figure out this garbage grandfathered in API at my company.
    I've been trying to figure out why this disgusting convoluted api at my company is seemingly generating calls to the database out of nowhere, and skipping to around 3:40, I finally got the one tip that made me realize that there must be a reference to the base schema somewhere in this project.
    I seriously hate how abstracted and convoluted all these modern solutions are, this is absolutely ridiculous. No wonder nobody understands how their APIs work these days. All the useful information gets buried under 14 files of Schema abstraction and inheritance. Why would a system ever be designed like this, I feel like the industry is purposefully inflating the amount of nonsense lines you have to write just to simply interface with the most basic features.
    I miss when you could just create a connection object and then send a sanitized query to the database and then get back the data you asked for without having to define the entire structure of the database in code with 100s of worthless lines of nonsense. Please, for the sake of future devs' sanity, please just use something sensible like Postgres. Postgresql scales better than Mongodb, supports much more straight forward querying, and has native support for storing documents in the database...

  • @sm1ley732
    @sm1ley732 3 ปีที่แล้ว

    it doesn't matter if TH-cam took down the dislike button, because I always give this dude a Like

  • @cold_
    @cold_ ปีที่แล้ว +1

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

  • @daydreamical
    @daydreamical 2 ปีที่แล้ว

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

  • @hadipawar2539
    @hadipawar2539 3 ปีที่แล้ว +1

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

  • @Rel3D
    @Rel3D 7 หลายเดือนก่อน

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

  • @mrdaho11
    @mrdaho11 2 ปีที่แล้ว

    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!

  • @adiemar3974
    @adiemar3974 2 ปีที่แล้ว

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

  • @manoj-k
    @manoj-k 3 ปีที่แล้ว

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

  • @saadarman4718
    @saadarman4718 ปีที่แล้ว

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

  • @mdmoazshamim4155
    @mdmoazshamim4155 6 หลายเดือนก่อน

    Thanks Kyle for this wonderful Mongoose Crash Course ❣

  • @Egyptianlayman-kp6ki
    @Egyptianlayman-kp6ki 6 วันที่ผ่านมา

    Perfectly to the point, thanks.

  • @rajamuhammadasher
    @rajamuhammadasher 3 ปีที่แล้ว

    Perfectly summarized. Good work Kyle

  • @pretor89
    @pretor89 3 ปีที่แล้ว

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

  • @zachfotis
    @zachfotis 2 ปีที่แล้ว

    Thank you, Kyle. That was a really helpful and not a time-consuming tutorial.

  • @Arabian_Abomination
    @Arabian_Abomination 3 ปีที่แล้ว +2

    Thanks! The mongoose docs are one of the worst I’ve ever seen 😣
    Really thankful for this tutorial!

  • @rakshitkathawate8838
    @rakshitkathawate8838 2 ปีที่แล้ว

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

  • @krishnasudan3410
    @krishnasudan3410 3 ปีที่แล้ว +1

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

  • @anuragkushwaaha2091
    @anuragkushwaaha2091 ปีที่แล้ว

    Just what I have been looking for !

  • @TegemeaLema
    @TegemeaLema 2 ปีที่แล้ว +1

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

  • @2029leandro
    @2029leandro ปีที่แล้ว

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

  • @chrisranni4339
    @chrisranni4339 2 ปีที่แล้ว

    Your content is the best on the web.

  • @shinmini99
    @shinmini99 ปีที่แล้ว

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

  • @gptwisdomtalks
    @gptwisdomtalks 2 ปีที่แล้ว

    Your videos are amazing brother , Simplified they are!

  • @MilanTiwariMessi
    @MilanTiwariMessi 2 ปีที่แล้ว

    I was looking for exactly this. Thanks Kyle.

  • @JordanCodesABit
    @JordanCodesABit ปีที่แล้ว +4

    If anybody gets caught with mongoose.prototype.connect() no longer accepts a callback.
    you need to:
    .then(() => console.log('Connected Successfully'))
    .catch((err) => { console.error(err); });
    instead of using the second and third parameters with callback functions to do so.

  • @AnirudhNayak-r2z
    @AnirudhNayak-r2z ปีที่แล้ว

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

  • @theophilus494
    @theophilus494 2 ปีที่แล้ว

    Meeeeeen i learnt a lot and in the space of 33 minutes... wao thanks and God bless you

  • @musiclovers8488
    @musiclovers8488 ปีที่แล้ว

    you are awesome... but you are ultimate fast.. I always appreciate your videos... thanks for sharing

  • @sinc1802
    @sinc1802 3 ปีที่แล้ว

    What the.. this tutorial showed up exactly after I struggled with mongoose last night. Perfect timing 🤣

  • @razaceme31
    @razaceme31 2 ปีที่แล้ว

    That helped me alot in starting a new project in mongoDB.

  • @vleessjuu
    @vleessjuu 6 หลายเดือนก่อน

    This is great. So many other videos just repeat the same stuff over and over ("MongoDB is not an RDB!" Yes, I know, move on please) but never really show you how to do things and what it's useful for.

  • @germanromanoa
    @germanromanoa 2 ปีที่แล้ว

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

  • @adriankaiser4642
    @adriankaiser4642 2 ปีที่แล้ว

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

  • @adnanahmad1062
    @adnanahmad1062 2 ปีที่แล้ว

    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.

  • @alexbalak7558
    @alexbalak7558 2 ปีที่แล้ว

    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)

  • @poppin_party
    @poppin_party 2 ปีที่แล้ว

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

  • @Sumaila2000
    @Sumaila2000 10 หลายเดือนก่อน +2

    Hello bro, thank you for this. You deserve everything you wish for 👍

    • @sisyphusnot01
      @sisyphusnot01 9 หลายเดือนก่อน

      heyo is this tutorial working for you because what i have seen is that the callbacks are deprecated in mongoose now.

    • @Sumaila2000
      @Sumaila2000 9 หลายเดือนก่อน

      Yeah, it worked for me. Some things have changed but I was able to rectify it from the docs.

  • @chinmayghule8272
    @chinmayghule8272 ปีที่แล้ว

    The MongoDB cheat sheet is excellent.

  • @nisargjoshi8236
    @nisargjoshi8236 ปีที่แล้ว

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

  • @aritradas8606
    @aritradas8606 6 หลายเดือนก่อน

    next level stuff! this guy is something!

  • @Sapphiamur
    @Sapphiamur 2 ปีที่แล้ว +1

    Amazing explanations, thank you so much :)!!

  • @ali-celebi
    @ali-celebi 2 ปีที่แล้ว

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

  • @shreyanshmishra31
    @shreyanshmishra31 3 ปีที่แล้ว +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.

  • @VIJAYKUMAR-ff1wo
    @VIJAYKUMAR-ff1wo ปีที่แล้ว

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

  • @Abdallah_Ismail
    @Abdallah_Ismail ปีที่แล้ว

    OMG I love your channel man LOVE it

  • @fazilabano1309
    @fazilabano1309 ปีที่แล้ว

    Brilliant🌟, you have cleared my concepts

  • @Max-tq1ig
    @Max-tq1ig 2 ปีที่แล้ว

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

  • @augusto256
    @augusto256 ปีที่แล้ว

    Man, you're a hero

  • @liampugh4705
    @liampugh4705 3 ปีที่แล้ว

    Awesome timing bringing this out

  • @samarpansuvaris753
    @samarpansuvaris753 ปีที่แล้ว

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

  • @umairqamar2672
    @umairqamar2672 2 ปีที่แล้ว

    You're super duper amazing, Kyle

  • @emperoralthaf6264
    @emperoralthaf6264 3 ปีที่แล้ว +6

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

  • @AleksMiAmOrsch
    @AleksMiAmOrsch 3 ปีที่แล้ว

    Right time, right place! TY

  • @MiSt3300
    @MiSt3300 3 ปีที่แล้ว

    Just what I've been waiting for!

  • @johnt.5646
    @johnt.5646 ปีที่แล้ว +1

    Fantastic effort and work for this video!!
    Nice

  • @ouihui
    @ouihui 3 ปีที่แล้ว

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

  • @jocelyn-n-tech
    @jocelyn-n-tech 2 ปีที่แล้ว

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