As a total mongodb noob this was just brilliant. Concise and to-the-point with explained examples, what more can you ask? Learned a lot in 29mins, thanks so much!
RE: $replace method at 28:33. The report on the screen shows matchedCount: 0, meaning no user was found and modifiedCount: 0, meaning no documents were altered. Nothing was found because he never created a user with age 30. The name John was there from before, added at 4:54. The result was not produced using $replace method. This minor inaccuracy should take nothing away from how awesome this tutorial is otherwise.
Whoops! At 8:46, while drinking coffee and not paying attention, I genuinely misheard you and thought Billy had swinging balls. Backed up and listened more closely!
Usefull Information, thx. There is one Topic im missing here and that is organization and structuring of data. Coming from an SQL Background its hard to imagine how i should structure my Data the "Mongo Way"
Thank you, that was an excellent 30 minute course. But I think there is one more thing you could know or want to know. My questions is can you build a query to match across collections? For example maybe you have a collection of users, and you have a collection for past due accounts. Could you make a query to print all addresses for users who are listed as past due in the other collection? Or do you have to design it to have all that information in a single collection? Thanks again
1:05 For anyone else struggling to get mongosh to work on Windows, when you add the mongosh filepath to Path in System variables, add the path to the "bin" folder WITHIN the mongosh folder, NOT the path to the mongosh folder. When you enter "mongosh" into the terminal to open the shell, you're attempting to run mongosh.exe, which is located inside the bin folder.
It's funny how I was about to go to sleep and now I understand and feel overly excited about using mongodb. Thank you very much, great video and straight to the point with very relevant examples.
you're a boss thx for the video . One mistake maybe : at 28:15 , your command works but find no one, it's written just below. After, the user you see is just an other one which already have a name of John
Error at 1:09, before entering mongosh command, we need to start mongodb server. I did that by performing the following steps. * In C:\Users\HP\ directory, i have mongodb extracted from zip. * Adjacent to it, i made a new folder called mongodb-data. * Then in the VS code terminal i wrote the following command C:\Users\HP\mongodb-win32-x86_64-windows-5.0.5-rc0\bin\mongod.exe --dbpath=/Users/HP/mongodb-data * In another terminal i entered mongosh command to run it successfully.
This is exactly what I needed. I've been procrastinating for 5 years to learn MongoDB lmao. I did open a tutorial once but it was an hour long and didn't have nearly as much content as Kyle. I have the attention span of a 5 year old and this is exactly how I want to learn, lot of stuff in a short time.
There are hundreds of excellent videos on various topics on RUclips but I must say that this video is the one that systematically and precisely compressed everything into a mere 30 minutes video. It took me 4 hours to complete because I was practicing all the commands along with this video. I am good in SQL but till I saw this video, I had no idea about MongoDB and therefore, I didn't take it seriously. This 30 minutes video was more than enough for me to compare and visualize what is there in SQL and how most of those tasks can be achieved in MongoDB with what is given in this video. I am filled with confidence now. Amazing video! Thank you very much!!
Awesome video, it would be super cool to explain how mongoose ties into this. It seems mongoose adds a certain structure so you don‘t have a hundred user objects all with jumbled keys. I‘m having a bit of trouble understanding where the mongoose layer sits when using mongodb. It would also be awesome to show how this can be tied into mongodb atlas
That was a greate intro, but I wish you talked about the package components : mongod, mongo/mongosh and mongos. The configuration of the server mobgod and creating more than one instance of mongod is crucial part. Also it should have been mentioned that the command-line tool mongosh is a client in mongodb and this means the server mongod can not be configured by mongosh but it has its own commands like : mongod --dbpath this/path.. this is diffetent from other tools we know like Git and NPM.
Very good to see how to use the different commands, but would also be interesting to see a video on the performance implications of some of them at scale. Because one of mongos selling points is that it scales well, it would be good to know which commands to avoid for performance reasons, and which are okay to use. I would assume that find({ _id: '...' }) is good but find all by an unindex property in a large collection is bad for example.
i never write comments, but I watch these all the time. This time, it really hit different just how valuable this is. thank you, friend. I'm always gonna remember this vid
ive watched other mongodb tuts which is longer than this one, but the content they provide in the end is limited. while this video only takes 30 minutes and it has all we need to know to get started. ive watched other kyles tuts videos, they are compressed with information and saves time. Thanks once again for our Man here Kyle. i really recommend his videos.
Thanks a bunch😁 this is gold, I have to get a job as soon as possible but I'm financially struggling so couldn't afford course, reading articles takes a lot of time(wasted 4 precious months on js still coudnt complete it). So videos like these are really a lot of help.
Can someone explain something to me; Couldn’t I just use a JSON object, instead MONGO? Like if I wanted to create a simple CRUD application, could not essentially just use JSON?
I am teaching myself MongoDB and found this very helpful! I have a CS degree but this particular niche is new to me and I find your tutorials very straightforward, well done, and helpful. Thank you for taking the time!
omg..i dont think i have the full vocabulary to express how grateful I am for your videos..This was the best best video ive watched on MongoDB and the thing is I rlly needed it to be taught in a short time as I've to learn it for my work asap. I wish I can return the favour because you are literally my life saver. Can't wait for your channel to become much bigger and hit your first 1M subscribers! Thank you sooooo much!!!!
I saw this course when I was looking for tutorials on this subject. For the same purpose, I have now completed an intensive week long course as a MongoDB Associate from MongoDB University. I came back here to give my educated constructive assessment of this course as I wouldn't want anyone else to be misled. My assessment is as follows... Unfortunately, to call this a crash course on MongoDB is irresonsible and dishonest to say the least. It is not fair on the people who decide to watch your video as they may leave thinking it is this simple. It's a lot more complex than this! You are only showing some simple commands that cover less than 5% of what you need to know about MongoDB. Please rephrase this title. Thank you
What if I had several article documents like this { _id: 43, title: "blog post", comments: [ { user_id: 1, text: "lorem ipsum"}, { user_id: 2, text: "hi hi"}, { user_id: 3, text: "lorem ipsum"}, { user_id: 1, text: "lorem ipsum"} ] } And then I wanted to find all articles where the comments have a user_id of 1 and return those comments
Love this video. Thank you so much! How would I search the db for objects that have an address on Main Street? I'm not looking for specifically "123 Main Street"... I just want every object that has the words "Main Street" in the address key. Keep up the great work!
00:13 "we're going to cover everything from the basic" 01:00 "it's pretty straightforward... once it is done - you can open it in the terminal" Mmm.... What makes you so sure? And what if not? It is not straight forward, it is not responding to the "mongosh" command the same way it responded to you while it is clearly required to copy-paste the entire command line which include your username in order to connect the server, so it is most definitely not "We'll cover everything from basic" - because THIS IS the most basic thing. Where are those teachers who don't take everything for granted..? As if their successful streamlined installation works for their viewers just as perfect as it worked for them 🤨
Thanks for your important knowledge-sharing video I have a question regarding operators { What is the main difference b/t pull, insert, delete, exists, and In Operators? } I will be very thankful for your Answer. Thanks.
Just friendly talk, no negativity at all. Don't lean forward into the camera. Try showing your hands when you want to explain something "it helps a lot more than you think" because with just words from the mouth it feels wrong, some body-language stuff. A camera on your face is not useful at all, please use this camera when you are trying to explain something on board if needed. Your voice would be more than enough since I don't gain anything from looking at you. There are a lot of things but this is good for now. Good luck and keep going.
Noticed that you used 1/0 for the True/False for the column select - yet the $exists function you actually use True/False - are they interchangeable ? i.e. could you use 1/0 with the $exists function ?
If i use my data base, which is on mongoDb community server and and display data in my ui, and pushed the code and then live the project on vercel or anything. then i am able to see that data in my pc only in which i installed the mongodb. I can not able to my data in my phone or in others pc, What should i do, I am just beginner please help!!! Should i use mongoDB Atlas???
Broooooo Even if my english is not perfect But this was best educational video that i have ever seen Thank you verry verry much A ton of info in 30 minutes Thank you again ❤️
Serious question, when you go to the barber shop do you ask for the Johnny Bravo? Just kidding man, your videos are golden, definitely some of the best tutorials on here.
video was informative but tbh I do not think that functionality where it creates whole structure while using or adding data if it didn't exists, that is quite problematic in my opinion, what if you are trying to use an existing db but you have a typo , it will create whole new structure?
If this would be a college course, it would take half semester to cover all these where Kyle covers in 30 mins. Universities have no place in the future of learning.
I love your content but take your time I had to watch a separate video on how to download and install mongoDB it’s something you could have included I understand you want to make it short and concise but I don’t mind watching a 2 hour tutorial that I know will be all I need to watch for that particular thing
Here is my opinion when it comes to NoSQL vs. an RDBMS. When building a front end application for data entry (CRUD operations), RDBMS is far better suited. This is because it provides a schema allowing me to control the data going into the database. It also provides referential integrity with foreign key constraints. When it comes to consumption of data however (web portals / mobile devices for reading data, reporting, etc.), these object-centric NoSQL databases do look to be a nice solution. That being said, I really love the channel. Thanks for another great video.
@@daniellindegren1182 I agree as well. The ONLY good use for MongoDB would be for document management (DMS). When you have a collection of random documents in a repository, I suppose this would work. But outside of a DMS (or as I said, reporting / read only data), RDBMS is always a better solution.
i'm way late to this party but omg this is so damn satisfying compared to SQL lol i can tell after 10 mins that i like this infinitely better for development - even if the syntax is less intuitive and a bit verbose
Fireship and WebDevSimplified uploaded at the same time on two topics I'm looking into. Christmas surely came early this year.
React native in 100s? Not sure how useable it is though
@@acasareto As useable as you can get in 100s.
No unnecessary talks 30 mins of pure content. Thank you sir 👍.
I approve, completely.
Exactly what i was looking for. Saved me a good amount of time.
As a total mongodb noob this was just brilliant. Concise and to-the-point with explained examples, what more can you ask? Learned a lot in 29mins, thanks so much!
This was really brilliant. No bells and whistles, just solid content to empower you on mongodb.👌🏾
This video Better than other 1hr long video by Harry, no unnecessary talk only content, like your effort.
Web Dev Simplified, pure only content. Just started, just today.. this is 1st proper video I watched, clearly explained.
Excellent overview of Mongo DB! - Thanks, Kyle.
{2021-09-29}, {2023-06-06},{2023-09-03}
Great Video! Finally i can work with MongoDB. Thanks!!
Thanks for such straight forward video!
@Web Dev Simplified as always you are a brilliant rockstar!! Thank you so much for the cheatsheet...
Watched in one go. Awesome explanation
RE: $replace method at 28:33. The report on the screen shows matchedCount: 0, meaning no user was found and modifiedCount: 0, meaning no documents were altered. Nothing was found because he never created a user with age 30. The name John was there from before, added at 4:54. The result was not produced using $replace method. This minor inaccuracy should take nothing away from how awesome this tutorial is otherwise.
Whoops! At 8:46, while drinking coffee and not paying attention, I genuinely misheard you and thought Billy had swinging balls. Backed up and listened more closely!
Thanks for the pure lesson, Kyle. I really appreciate it!
Thanks a Lot, brother, your hard work is appriciated with hearts.
Best video for mongoDB thankyou
Exactly what I need ❤️
Nice and conscise.
Usefull Information, thx.
There is one Topic im missing here and that is organization and structuring of data. Coming from an SQL Background its hard to imagine how i should structure my Data the "Mongo Way"
Thank you, Kyle!
Informative and helpful. Thanks a lot
Kyle, can't thank you enough. Wow.
very informative and clear. thank you !
you are AWESOME, thanks
Great video. Thanks
Thank you Kyle
Awesome video 🔥🔥🔥
awesome content! thank you
Thank you, that was an excellent 30 minute course. But I think there is one more thing you could know or want to know. My questions is can you build a query to match across collections? For example maybe you have a collection of users, and you have a collection for past due accounts. Could you make a query to print all addresses for users who are listed as past due in the other collection? Or do you have to design it to have all that information in a single collection? Thanks again
Thank you sir
Thank you brother.
I love this 😍
Amazing!
Make one more video explain more complex topic in mongodb like aggregate, $facet etc
mongosh - sh for bash script ?
never knew that was comming...
thanks
Awesome
🔥🔥🔥
By the time you complete mongodb tutorial, you'll become a bracket master.
=D
😂
not until you've done the LISP tutorial... :O
dude 🤣
🤣🤣🤣
1:05 For anyone else struggling to get mongosh to work on Windows, when you add the mongosh filepath to Path in System variables, add the path to the "bin" folder WITHIN the mongosh folder, NOT the path to the mongosh folder. When you enter "mongosh" into the terminal to open the shell, you're attempting to run mongosh.exe, which is located inside the bin folder.
It's funny how I was about to go to sleep and now I understand and feel overly excited about using mongodb. Thank you very much, great video and straight to the point with very relevant examples.
👀 MongoDB 😍
Great job Kyle!
codeSTACKr I built by vscode theme from ur vid
Excellent crash course!!! Always on point! I needed to learn this for my internship, thank you!
Same😂
@@NikhilKumar-ry7eg same
How did all of you guy's internships go? I hope it all went well!
Same situation currently
Thank you, Kyle! I'm still learning how to code, but you've made this journey so much easier. Keep putting out great content and tutorials.
you're a boss thx for the video . One mistake maybe : at 28:15 , your command works but find no one, it's written just below. After, the user you see is just an other one which already have a name of John
Error at 1:09, before entering mongosh command, we need to start mongodb server.
I did that by performing the following steps.
* In C:\Users\HP\ directory, i have mongodb extracted from zip.
* Adjacent to it, i made a new folder called mongodb-data.
* Then in the VS code terminal i wrote the following command C:\Users\HP\mongodb-win32-x86_64-windows-5.0.5-rc0\bin\mongod.exe --dbpath=/Users/HP/mongodb-data
* In another terminal i entered mongosh command to run it successfully.
This is exactly what I needed. I've been procrastinating for 5 years to learn MongoDB lmao. I did open a tutorial once but it was an hour long and didn't have nearly as much content as Kyle.
I have the attention span of a 5 year old and this is exactly how I want to learn, lot of stuff in a short time.
This was awesome! It's just a quick overview .. not dragging it out like all the other videos but just to the point. Thanks! Very nice!
Bro, this is the most content-packed 29 minutes tutorial on RUclips.
No dull moments, no time wasting, no silent moments., just straight content.
Pure , high quality content ❤...keep it up Kyle....
I will take care of the Eric cartman he won't bug you anymore..keep doing ur thing...
Around 28:40 - I just don't get, why for replaceOne mongosh logged matchedCount 0, even though it actually did find a record for a replacement.
Thanks a lot, Kyle for this crash course. Appreciate that you prepared and provided the cheat sheet as well, will be super useful for reference.
Can we write a Syntaxes MongoDB in VS Code? But I've tried a MariaDB in VS Code it's cannot.
There are hundreds of excellent videos on various topics on RUclips but I must say that this video is the one that systematically and precisely compressed everything into a mere 30 minutes video. It took me 4 hours to complete because I was practicing all the commands along with this video.
I am good in SQL but till I saw this video, I had no idea about MongoDB and therefore, I didn't take it seriously. This 30 minutes video was more than enough for me to compare and visualize what is there in SQL and how most of those tasks can be achieved in MongoDB with what is given in this video.
I am filled with confidence now. Amazing video! Thank you very much!!
Imagine someone taking a 30-day paid course and this guy just explained everything in 30 min for free.
Awesome video, it would be super cool to explain how mongoose ties into this. It seems mongoose adds a certain structure so you don‘t have a hundred user objects all with jumbled keys. I‘m having a bit of trouble understanding where the mongoose layer sits when using mongodb. It would also be awesome to show how this can be tied into mongodb atlas
I literally was just wanting to learn this today
Youre amazing
Thank you very helpful and quick learnable
That was a greate intro, but I wish you talked about the package components : mongod, mongo/mongosh and mongos. The configuration of the server mobgod and creating more than one instance of mongod is crucial part. Also it should have been mentioned that the command-line tool mongosh is a client in mongodb and this means the server mongod can not be configured by mongosh but it has its own commands like : mongod --dbpath this/path.. this is diffetent from other tools we know like Git and NPM.
very good
Appreciations for the content presentation
3:00
Very good to see how to use the different commands, but would also be interesting to see a video on the performance implications of some of them at scale. Because one of mongos selling points is that it scales well, it would be good to know which commands to avoid for performance reasons, and which are okay to use. I would assume that find({ _id: '...' }) is good but find all by an unindex property in a large collection is bad for example.
^ this!!!
i never write comments, but I watch these all the time. This time, it really hit different just how valuable this is. thank you, friend. I'm always gonna remember this vid
ive watched other mongodb tuts which is longer than this one, but the content they provide in the end is limited. while this video only takes 30 minutes and it has all we need to know to get started. ive watched other kyles tuts videos, they are compressed with information and saves time. Thanks once again for our Man here Kyle. i really recommend his videos.
I need to actually slow down the video....sheesh
No unnecessary speech, only pure content, simple clear depth understanding ❤
Thanks a bunch😁 this is gold, I have to get a job as soon as possible but I'm financially struggling so couldn't afford course, reading articles takes a lot of time(wasted 4 precious months on js still coudnt complete it). So videos like these are really a lot of help.
Can someone explain something to me; Couldn’t I just use a JSON object, instead MONGO? Like if I wanted to create a simple CRUD application, could not essentially just use JSON?
I am teaching myself MongoDB and found this very helpful! I have a CS degree but this particular niche is new to me and I find your tutorials very straightforward, well done, and helpful. Thank you for taking the time!
Kyle can also participate in rap battles....
The best
@@Jaseermumtzpoco c3 lock how to pottikkum paranj taa
Okay boss
Oohh
Brilliant job. The video is amazing. I just realized how can you talk non-stop. doesn't your mouth hurt? 😂
omg..i dont think i have the full vocabulary to express how grateful I am for your videos..This was the best best video ive watched on MongoDB and the thing is I rlly needed it to be taught in a short time as I've to learn it for my work asap. I wish I can return the favour because you are literally my life saver. Can't wait for your channel to become much bigger and hit your first 1M subscribers! Thank you sooooo much!!!!
"everything you need to know about mongodb" - really?
I saw this course when I was looking for tutorials on this subject. For the same purpose, I have now completed an intensive week long course as a MongoDB Associate from MongoDB University. I came back here to give my educated constructive assessment of this course as I wouldn't want anyone else to be misled. My assessment is as follows...
Unfortunately, to call this a crash course on MongoDB is irresonsible and dishonest to say the least. It is not fair on the people who decide to watch your video as they may leave thinking it is this simple. It's a lot more complex than this! You are only showing some simple commands that cover less than 5% of what you need to know about MongoDB.
Please rephrase this title.
Thank you
What if I had several article documents like this
{
_id: 43,
title: "blog post",
comments: [
{ user_id: 1, text: "lorem ipsum"},
{ user_id: 2, text: "hi hi"},
{ user_id: 3, text: "lorem ipsum"},
{ user_id: 1, text: "lorem ipsum"}
]
}
And then I wanted to find all articles where the comments have a user_id of 1 and return those comments
Love this video. Thank you so much! How would I search the db for objects that have an address on Main Street? I'm not looking for specifically "123 Main Street"... I just want every object that has the words "Main Street" in the address key. Keep up the great work!
00:13
"we're going to cover everything from the basic"
01:00
"it's pretty straightforward... once it is done - you can open it in the terminal"
Mmm.... What makes you so sure?
And what if not?
It is not straight forward, it is not responding to the "mongosh" command the same way it responded to you
while it is clearly required to copy-paste the entire command line which include your username in order to connect the server, so it is most definitely not "We'll cover everything from basic" - because THIS IS the most basic thing.
Where are those teachers who don't take everything for granted..?
As if their successful streamlined installation works for their viewers just as perfect as it worked for them 🤨
Thanks for your important knowledge-sharing video
I have a question regarding operators { What is the main difference b/t pull, insert, delete, exists, and In Operators? }
I will be very thankful for your Answer.
Thanks.
this is the first time I watch an educational video without skipping any parts. Thank you so much for your clear and fast explanation !!!
Fantastic and Perfect VIdeo! Clear explanations and easy-to-follow steps. Simplified complex concepts. Perfect for beginners! ❤❤
Just friendly talk, no negativity at all.
Don't lean forward into the camera.
Try showing your hands when you want to explain something "it helps a lot more than you think" because with just words from the mouth it feels wrong, some body-language stuff.
A camera on your face is not useful at all, please use this camera when you are trying to explain something on board if needed.
Your voice would be more than enough since I don't gain anything from looking at you.
There are a lot of things but this is good for now.
Good luck and keep going.
When I type mongosh on terminal, it returns and error
"MongoNetworkError: connect ECONNREFUSED"
Noticed that you used 1/0 for the True/False for the column select - yet the $exists function you actually use True/False - are they interchangeable ? i.e. could you use 1/0 with the $exists function ?
If i use my data base, which is on mongoDb community server and and display data in my ui, and pushed the code and then live the project on vercel or anything. then i am able to see that data in my pc only in which i installed the mongodb. I can not able to my data in my phone or in others pc, What should i do, I am just beginner please help!!! Should i use mongoDB Atlas???
Very Good Tutorial for learning CRUD operations in Mongodb , very simplified 100/100
Kyle, you are certainly FAST! Anyway, although english is not my native language I could follow you quite easily. Congrats!
Broooooo
Even if my english is not perfect
But this was best educational video that i have ever seen
Thank you verry verry much
A ton of info in 30 minutes
Thank you again ❤️
This video is stupidly fun to watch, wtf! I went from knowing ZERO of MongoDB to actually get it running
Liked. Subscribed. ....and what is perhaps even more $ valuable: I have shown clicking interest in the ads 😜
Serious question, when you go to the barber shop do you ask for the Johnny Bravo? Just kidding man, your videos are golden, definitely some of the best tutorials on here.
video was informative but tbh I do not think that functionality where it creates whole structure while using or adding data if it didn't exists, that is quite problematic in my opinion, what if you are trying to use an existing db but you have a typo , it will create whole new structure?
Please make video on advance function of mongoose like agrigate pipeline because it is complicated for many developers
I’m being honest, this is my favourite channel on RUclips, Kyle thank you for all your work man, please keep it up ❤
If this would be a college course, it would take half semester to cover all these where Kyle covers in 30 mins. Universities have no place in the future of learning.
I love your content but take your time
I had to watch a separate video on how to download and install mongoDB it’s something you could have included I understand you want to make it short and concise but I don’t mind watching a 2 hour tutorial that I know will be all I need to watch for that particular thing
Here is my opinion when it comes to NoSQL vs. an RDBMS. When building a front end application for data entry (CRUD operations), RDBMS is far better suited. This is because it provides a schema allowing me to control the data going into the database. It also provides referential integrity with foreign key constraints.
When it comes to consumption of data however (web portals / mobile devices for reading data, reporting, etc.), these object-centric NoSQL databases do look to be a nice solution.
That being said, I really love the channel. Thanks for another great video.
Agreed. Data is almost always relational. The very small percent where it's not, I definitely wouldn't turn to MongoDB.
@@daniellindegren1182 I agree as well. The ONLY good use for MongoDB would be for document management (DMS). When you have a collection of random documents in a repository, I suppose this would work. But outside of a DMS (or as I said, reporting / read only data), RDBMS is always a better solution.
It could have been better if you would’ve given little introduction of Mongo DB and why should we use it, little on the fundamentals… 😢
what a lovely video! kyle
i'm way late to this party but omg this is so damn satisfying compared to SQL lol i can tell after 10 mins that i like this infinitely better for development - even if the syntax is less intuitive and a bit verbose