Learn MongoDB
Learn MongoDB online through our comprehensive course. The most popular NoSQL database for modern web applications.
Curriculum
01MongoDB Fundamentals
What is MongoDB?
This returns the current MongoDB version, verifying your connection.
What is NoSQL?
NoSQL databases scale easily and don't enforce strict schemas.
SQL vs NoSQL
MongoDB stores JSON-like documents instead of rows and columns.
Document Databases
Data is stored in independent documents.
Collections and Documents
A collection is like a table, a document is like a row.
JSON vs BSON
MongoDB stores data internally as BSON (Binary JSON), which includes additional types like Date and ObjectId.
02MongoDB Data Model
03MongoDB CRUD
insertOne()
Insert a single document into a collection.
insertMany()
Insert multiple documents efficiently.
findOne()
Finds the first document matching the query.
find()
Finds all documents matching the query and returns a cursor.
Projection
Specify which fields to return (1) or exclude (0).
Sort, Limit, and Skip
Used for pagination and ordering.
updateOne()
Updates the first matching document.
updateMany()
Updates all matching documents.
replaceOne()
Completely replaces the document, keeping the same _id.
deleteOne()
Deletes the first matching document.
deleteMany()
Deletes all matching documents.
04Query Operators
05Arrays
06Updating Documents
07MongoDB Data Modeling
08MongoDB Aggregation
Aggregation Framework
Process data records and return computed results via a pipeline.
$match and $project
Filter and shape data in the pipeline.
$group and $sum
Group documents by a key and calculate aggregates.
$lookup (Joins)
Perform a left outer join to an unsharded collection.
$unwind
Deconstruct an array field into multiple documents.
09Indexes & Performance
10MongoDB Security Fundamentals
11MongoDB Atlas
12MongoDB with Node.js
13MongoDB with Express.js
14MongoDB with React
15MongoDB with PHP
16MongoDB + Full-Stack Architecture
17MongoDB + REST API Concepts
18MongoDB Transactions
19Advanced MongoDB Concepts
20Web Development Projects
Explore the MongoDB Ecosystem
Continue learning MongoDB
Access all MongoDB lessons and tutorials.
Practice MongoDB exercises
Apply your knowledge with interactive coding challenges.
Test your knowledge with MongoDB quizzes
Check your understanding with multiple-choice questions.
Browse the MongoDB reference
Quickly look up syntax, methods, and properties.