In this video, we're going to learn how to do simple update and delete operations in MongoDB using MongoDB Compass and its build in MongoDB Shell. MongoDB is a document-oriented database program. MongoDB is a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. Why use MongoDB Compass? It's a GUI... Who doesn't like GUI? The built in MongoDB Shell has some intellisense to an extent. Of course, you can do everything on command line.
Some methods used in video:
db.collection.deleteMany() // use this with no conditions if want to wipe out entire collection's data
db.collection.deleteOne() // delete one document in collection given condition... if no condition, probably delete first document in collection
db.collection.updateOne() // update one
db.collection.updateMany() // update many
db.collection.replaceOne() // replace filtered document with a completely different document
Useful Links:
MongoDB Docs:
https://docs.mongodb.com/manual/tutor...
https://docs.mongodb.com/manual/tutor...
Smash the Like and DESTROY the Subscribe Buttons
Here are some tutorials you would wanna see:
Ben Awad (this guy is great):
Next JS Static Site Generation Tutorial: • Next.js Static Site Generation (SSG) Tutorial
Typescript NextJS GraphQL Series: • Typescript, Next.js, And GraphQL Series
Cache Static Content with Cloudflare: • How to Cache Static Content with CloudFlare
Traversy Media (this guy is great):
MERN Node backend tutorial: • Learn the MERN Stack [2] - Express API & M...
Vince Tech (this guy kinda trash)