MongoDB Tutorial
NoSQL document database
Learn MongoDB with 18 free lessons. Documents, collections, queries, aggregation, indexes, and Node.js integration — the most popular NoSQL database.
What you'll learn
- Documents and collections
- CRUD operations
- Query operators
- Aggregation pipeline
- Mongoose with Node.js
Prerequisites
- Basic JavaScript
- Familiarity with JSON
Why learn MongoDB?
- Most popular NoSQL database in modern stacks
- Schema-flexible — perfect for fast-moving products
- Pairs naturally with Node.js (MEAN/MERN stack)
- Cloud-first via MongoDB Atlas — no install needed to start
Course Curriculum
18 lessons · ~10 hours · self-paced
- 1
Introduction to MongoDB
What is MongoDB?
- 2
Installing MongoDB & Setup
Server, Shell, Driver — Three Different Things
- 3
Databases & Collections
Databases and Collections Are Created Lazily
- 4
Inserting Documents
insertOne: One Document at a Time
- 5
Querying Documents
find() Hands Back a Cursor
- 6
Query Operators
Where an Operator Goes
- 7
Updating Documents
Every Update Has Three Parts
- 8
Deleting Documents
deleteOne: Remove Exactly One Document
- 9
Indexing
What an Index Actually Is
- 10
Aggregation Pipeline
A Pipeline Is a Conveyor Belt
- 11
Data Modeling
Model for Your Queries, Not for Your Entities
- 12
Relationships & References
One-to-One: Usually Just Embed
- 13
Mongoose ODM
What an ODM Is, and Why You Might Add One
- 14
Schema Validation
Two Places Validation Can Live
- 15
MongoDB Atlas (Cloud)
What Atlas Is, and What It Takes Off Your Plate
- 16
Transactions
The Problem Transactions Solve
- 17
MongoDB Best Practices
Schema Decisions Are the Expensive Ones
- 18
Final Project: Build a Database App
What You Are Building
Ready to start?
All 18 lessons are free. No credit card. No sign-up required to read.
Start with lesson 1: Introduction to MongoDB