Learn MongoDB
54 lessons in 12 modules, each ending in drills you run in the browser. Read a module end to end, or open any lesson directly — they stand on their own.
MongoDB fundamentals
Querying and updating documents: find, operators, nested data, arrays, sorting and writes.
Documents and find()
How MongoDB stores data, and how to read it back.
Query operators
Comparison, set membership, and boolean logic inside a filter.
Nested objects and arrays
Dot notation, matching array contents, and the trap everyone hits.
Sorting and pagination
sort(), limit(), skip() — and why skip() stops working at scale.
Updating documents
$set, $inc, upsert, replaceOne — and the update that silently deletes fields.
Updating arrays
$push, $addToSet, $pull, and editing an object inside an array.
Aggregation
The pipeline: filtering, reshaping, grouping, and flattening arrays with $unwind.
Advanced aggregation
Joins, array expression operators, conditionals, $facet, dates, and full interview problems.
Joining collections with $lookup
The basic join, the pipeline form, and what it costs.
Array and conditional expressions
$filter, $map, $reduce, $cond, $ifNull — working inside a document, not across documents.
Facets, dates and full problems
$facet for dashboards and paging, date grouping, and one end-to-end interview problem.