MongoDB & Databases
Checking access...
MongoDB is the most widely used NoSQL database — it stores data as flexible JSON-like documents rather than rigid tables. This module teaches you everything from basic CRUD to advanced aggregation and production operations.
Module Pages
| Page | What You’ll Learn |
|---|---|
| MongoDB Fundamentals | Document model, collections, databases, BSON vs JSON, installing MongoDB, MongoDB Shell |
| CRUD Operations | insertOne/insertMany, find with queries, updateOne/updateMany, deleteOne/deleteMany |
| Query Operators & Filtering | Comparison ($gt, $lt, $in), logical ($and, $or), element ($exists), array ($all, $elemMatch) |
| Indexing & Performance | Single field, compound, multikey indexes, explain(), index selection, sort with indexes |
| Aggregation Pipeline | $match, $group, $sort, $project, $lookup, $unwind, pipeline optimization |
| Mongoose ODM | Schemas, models, validation, middleware (pre/post hooks), virtuals, populate (references) |
| Data Modeling | Embedding vs referencing, one-to-one, one-to-many, many-to-many, schema design patterns |
| MongoDB Atlas & Cloud | Free tier cluster, connection strings, IP whitelisting, Atlas UI, backups, monitoring |
| Transactions & Atomicity | ACID transactions in MongoDB, multi-document transactions, retry logic, when to use |
| Project: Task Manager with MongoDB | Connect Express API to MongoDB with Mongoose, full CRUD, aggregation reports |
Key Takeaways
By the end of this module, you’ll be able to design MongoDB schemas, perform efficient queries using indexes and the aggregation pipeline, integrate MongoDB with Node.js using Mongoose, and deploy to MongoDB Atlas.