Intro & Documents
The document model, run MongoDB with Docker, mongosh + Compass, BSON, document vs relational. Start →
Intro & Documents
The document model, run MongoDB with Docker, mongosh + Compass, BSON, document vs relational. Start →
CRUD
insertOne/Many, find, update operators ($set/$inc/$push), delete, upsert & bulkWrite. Create & read →
Querying
Comparison & logical operators, querying arrays and nested documents, projection, sort, pagination. Query →
Indexes
Single & compound indexes, the ESR rule, explain() & query plans, multikey/text/TTL/partial/unique. Speed up →
Aggregation
The pipeline — $match/$project, $group, $lookup joins, $unwind, $facet & $bucket. Aggregate →
Data Modeling
Embedding vs referencing, relationships, schema-design patterns, $jsonSchema validation, anti-patterns. Model →
Transactions & Consistency
Single-document atomicity, multi-document transactions, read/write concerns, change streams. Stay consistent →
Operations & Scaling
Replica sets, sharding, performance & profiling, security & Atlas. Run it →
Five ways to run every query
Each operation is shown in mongosh, Node.js, Python, Go, and Rust — synced tabs, so pick your driver once and follow it through.
See the documents
Reads show the actual result documents as JSON, so you always know the shape of what comes back.
Diagrams + Compass + Docker
Theme-aware Mermaid diagrams (pipelines, replica sets, sharding, the ESR rule), MongoDB Compass GUI tours, and a Docker setup to run it locally.
Bilingual + read mode
English and ไทย, quizzes with saved progress, and a distraction-free read mode.