querydrill

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

6 modules

Querying and updating documents: find, operators, nested data, arrays, sorting and writes.

Aggregation

3 modules

The pipeline: filtering, reshaping, grouping, and flattening arrays with $unwind.

Advanced aggregation

3 modules

Joins, array expression operators, conditionals, $facet, dates, and full interview problems.

By topic

across modules

MongoDB find()

MongoDB array queries

MongoDB updates

MongoDB $group

MongoDB $unwind

MongoDB $lookup

MongoDB $map

Reference

no new concepts, just the lookup

MongoDB operator cheatsheet

How to think about an aggregation pipeline

Common aggregation mistakes

$match vs $filter, $project vs $map, $group vs $reduce