Sikau

Learn MongoDB

Document databases: queries, modelling, indexes and aggregation.

Store data as flexible JSON-like documents. Learn mongosh queries and update operators, model data by embedding or referencing, speed things up with indexes, and analyse data with the aggregation pipeline — in a MongoDB-style database that runs in your browser.

Intermediate · 15 lessons · about 8 hours · free

Start MongoDB free: run real code in your browserright here

Continue with Google

What you will learn

Unit 1: Documents

Insert, query, shape, update and delete documents.

  1. Day 1What is MongoDB?Documents and collections instead of rows and tables.20 min
  2. Day 2Querying documentsFilters, operators, nested fields and arrays.30 min
  3. Day 3Projection, sorting and countingChoose fields, order and page results.25 min
  4. Day 4Updating and deleting$set, $inc, $push, $pull, upserts and deletes.30 min
  5. Day 5Project: Recipe catalogueInsert, query and update documents together.35 min

Unit 2: Modelling and indexes

Embedding vs referencing, arrays of sub-documents, indexes and schemas.

  1. Day 6Embed or reference?The core MongoDB design decision.30 min
  2. Day 7Arrays of sub-documents$elemMatch, positional updates and array operators.30 min
  3. Day 8IndexesFast queries and unique fields.25 min
  4. Day 9Schemas: validation and MongooseFlexible doesn't mean messy.25 min
  5. Day 10Project: Blog with commentsModel, index and query a small blog.40 min

Unit 3: Aggregation and apps

The aggregation pipeline, joins with $lookup, and MongoDB in real apps.

  1. Day 11The aggregation pipeline$match, $group, $sort and $project.35 min
  2. Day 12$unwind and $lookupOpen up arrays and join collections.35 min
  3. Day 13MongoDB from Node.jsThe driver, connection handling and ObjectIds.25 min
  4. Day 14MongoDB in productionReplica sets, transactions, Atlas, and choosing SQL vs NoSQL.20 min
  5. Day 15Capstone: Sales dashboard pipelineOne pipeline for a whole dashboard card.45 min

Before you start

These courses make MongoDB easier:

See all courses

Built with ❤️ by dibe.sh