MongoDB & the Document Model
Documents, collections and the aggregation pipeline, in a real mongo shell.
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 freeWhat this course covers
- Why Documents: the Object Relational Mismatch
- Meet the mongosh Shell
- Documents, BSON and the _id Field
- insertOne and insertMany
- find and the Query Filter
- Comparison Operators: $gt, $lt, $in and $ne
- Logical Operators: $and, $or and $not
- Arrays: $elemMatch, $all and $size
- Nested Documents and Dot Notation
- Updates: $set, $inc, $push and $pull
- deleteOne and deleteMany
- Projection, sort, limit and skip
- The Aggregation Pipeline: $match and $project
- $group and the Accumulators
- $sort, $limit and $unwind
- $lookup: Joining in a Database That Says It Cannot
- Schema Design: Embed or Reference
- Indexes in MongoDB
- Transactions and the Single Document Guarantee
- Capstone: Model and Query an E-commerce Dataset
Other courses
Learn to think like a problem-solver before you write a single line of code. Break big …
Your first Python course, no experience needed. Learn variables, loops, functions, and …
Level up your Python with comprehensions, lambdas, error handling, files, modules, and …
Master OOP in Python: classes, objects, inheritance, polymorphism, encapsulation, abstr…
Go deeper in Python: decorators, generators, type hints, regex, JSON, SQLite, testing, …
Core CS: arrays, lists, stacks, queues, hash tables, trees, graphs, sorting, searching,…
Build your own 2D games from scratch: the game loop, sprites, movement, collisions, and…
Learn Java from zero, with no programming background needed. Write your first program, …
Learn C++ from zero, with no programming background needed. Start with your first progr…
Learn C from zero, with no programming background needed. The language that Unix, Linux…
Learn JavaScript from scratch: variables, types, loops, functions, arrays and objects, …
Build for the browser: structure pages with HTML, style them with CSS, then use live AP…