MongoDB
Get started with MongoDB by understanding its purpose, architecture, and key concepts. Learn why MongoDB is classified as a NoSQL database, how it stores data as flexible documents, and how databases, collections, and documents work together. This tutorial provides a beginner-friendly overview of MongoDB, helping you understand its advantages, common use cases, and role in modern software applications.
Lesson outline
-
13
updateOne and updateMany in MongoDB
Learn to update MongoDB documents with updateOne and updateMany. This MongoDB tutorial covers syntax, examples, and best practices for targeted updates.
-
14
MongoDB replaceOne
Learn how to replace documents with replaceOne in MongoDB. Understand the syntax, behavior, and practical use cases with hands-on examples.
-
15
Deleting MongoDB Documents
Learn how to delete documents and drop collections in MongoDB with clear examples and practical steps.
-
16
MongoDB _id and ObjectId
Understand MongoDB _id and ObjectId in depth — how the default identifier works, its structure, and why it matters. Hands-on steps and troubleshooting.
-
17
MongoDB Compass Data Exploration
Learn to use MongoDB Compass for visual data exploration in this step-by-step tutorial. Discover how to browse databases, inspect documents, and run queries with an intuitive GUI—perfect for beginners.
-
18
Model One-to-One Relationships
Learn to model one-to-one relationships in MongoDB documents — embed or reference? Step-by-step guide with hands-on exercise and troubleshooting.
-
19
Model One-to-Many with Embedded Arrays
Learn how to model one-to-many relationships using embedded arrays in MongoDB. This lesson covers the core concept, step-by-step implementation, practical examples, and when to choose embedded arrays over references.
-
20
Model Many-to-Many with References
Model many-to-many relationships with references in MongoDB. Learn how to store related data using arrays of document references, perform joins with $lookup, and choose when to use references over embedding.
-
21
Create Indexes to Speed Up Queries
Learn how to create indexes in MongoDB to dramatically speed up your queries. This lesson covers basic index creation, choosing the right fields, and troubleshooting common pitfalls.
-
22
MongoDB Index Types
Explore single and compound indexes in MongoDB: how they work, when to use each, and hands-on examples to speed up your queries.
-
23
Use text indexes for search queries
Learn how to use MongoDB text indexes for fast, flexible search queries. This tutorial covers creating indexes, searching text fields, and handling edge cases.
-
24
Set Up a Simple Aggregation Pipeline
Learn to set up a simple aggregation pipeline in MongoDB. This hands-on tutorial covers the core stages, step-by-step setup, common pitfalls, and what to explore next.
MongoDB — step-by-step tutorials
What you will find here
This track walks through mongodb in order — each lesson is server-rendered HTML you can read without JavaScript. Follow the outline, then practice in the browser IDE when a lesson links to runnable code.
Tutorials vs quizzes and code samples
Tutorials teach in sequence. For quick checks use quizzes. For copy-paste snippets see code samples. For deeper reading browse articles.