MongoDB Fundamentals: Documents, Queries and Indexes

Learn MongoDB from documents and CRUD to indexes, aggregation, schema design and replication. For developers building apps with flexible data.

Learn MongoDB free, in English or Hindi, with lessons, shorts and interview questions.

Start course → · Interview questions

23 lessons · 12 modules · Free · Updated 1 Oct 2026

What you'll learn

  • Explain the document model and how it differs from relational tables.
  • Run CRUD operations with filters, projection and update operators.
  • Speed up queries with indexes and summarize data with aggregation pipelines.
  • Choose between embedding and referencing in schema design.
  • Understand transactions, replication, sharding and basic security.

Syllabus

Module 1: Getting Started

  1. What is MongoDB?
  2. Installing MongoDB & mongosh

Module 2: Documents & Collections

  1. Documents & BSON
  2. Collections & the _id Field

Module 3: Creating Data

  1. insertOne & insertMany

Module 4: Reading Data

  1. find() Basics
  2. Query Operators
  3. Projection

Module 5: Updating Data

  1. updateOne & updateMany
  2. Update Operators

Module 6: Deleting Data

  1. deleteOne & deleteMany

Module 7: Indexes

  1. Indexes

Module 8: Aggregation

  1. The Aggregation Pipeline
  2. An Aggregation Example

Module 9: Schema Design

  1. Embedding vs Referencing
  2. Schema Example: Blog & Comments

Module 10: Using Mongoose

  1. Mongoose Schema & Model
  2. Mongoose Validation

Module 11: Reliability

  1. Transactions at a Glance
  2. Replication & Replica Sets
  3. Sharding

Module 12: Cloud

  1. MongoDB Atlas at a Glance
  2. Security Basics: Auth, Roles & Network Access

Related courses