{# Course schema: this is what turns a blue link into a result that shows the provider and the level. Only facts that are actually true go in here. #}
ExpoCoder Sign in Start free

MongoDB & the Document Model

Documents, collections and the aggregation pipeline, in a real mongo shell.

20 lessons about 7 hours Medium
Learn it by writing it.

Every lesson runs real code in your browser, checked the moment you submit. No installing anything, no setup, no waiting.

Start MongoDB & the Document Model free

What this course covers

  1. Why Documents: the Object Relational Mismatch
  2. Meet the mongosh Shell
  3. Documents, BSON and the _id Field
  4. insertOne and insertMany
  5. find and the Query Filter
  6. Comparison Operators: $gt, $lt, $in and $ne
  7. Logical Operators: $and, $or and $not
  8. Arrays: $elemMatch, $all and $size
  9. Nested Documents and Dot Notation
  10. Updates: $set, $inc, $push and $pull
  11. deleteOne and deleteMany
  12. Projection, sort, limit and skip
  13. The Aggregation Pipeline: $match and $project
  14. $group and the Accumulators
  15. $sort, $limit and $unwind
  16. $lookup: Joining in a Database That Says It Cannot
  17. Schema Design: Embed or Reference
  18. Indexes in MongoDB
  19. Transactions and the Single Document Guarantee
  20. Capstone: Model and Query an E-commerce Dataset

Other courses

Computational Thinking

Learn to think like a problem-solver before you write a single line of code. Break big …

Basic Python

Your first Python course, no experience needed. Learn variables, loops, functions, and …

Intermediate Python

Level up your Python with comprehensions, lambdas, error handling, files, modules, and …

Object-Oriented Programming

Master OOP in Python: classes, objects, inheritance, polymorphism, encapsulation, abstr…

Advanced Python

Go deeper in Python: decorators, generators, type hints, regex, JSON, SQLite, testing, …

Data Structures & Algorithms

Core CS: arrays, lists, stacks, queues, hash tables, trees, graphs, sorting, searching,…

Games with Pygame

Build your own 2D games from scratch: the game loop, sprites, movement, collisions, and…

Java

Learn Java from zero, with no programming background needed. Write your first program, …

C++

Learn C++ from zero, with no programming background needed. Start with your first progr…

C

Learn C from zero, with no programming background needed. The language that Unix, Linux…

JavaScript

Learn JavaScript from scratch: variables, types, loops, functions, arrays and objects, …

Web Frontend

Build for the browser: structure pages with HTML, style them with CSS, then use live AP…

See all courses