Databases & SQL · Databases & SQL

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.

Sponsored

Lesson outline

  1. 25
    Group & Count in MongoDB

    Learn to group and count documents with $group and $count in MongoDB. This step-by-step tutorial covers practical examples, beginner-friendly explanations, and advanced tips to master aggregation pipelines.

  2. 26
    Blog Schema in MongoDB

    Design a blog platform schema in MongoDB with this hands-on tutorial. Learn document modeling, collections, and relationships for posts and comments.

  3. 27
    Aggregation Sorting & Limiting

    Master MongoDB's aggregation framework for sorting and limiting results. This lesson covers the $sort and $limit stages, practical examples, performance tips, and common pitfalls — ideal for developers advancing through the MongoDB learning path.

  4. 28
    MongoDB $lookup Aggregation Joins

    Learn to join MongoDB collections with $lookup in aggregation pipelines. This hands-on tutorial covers the syntax, practical examples, and edge cases, preparing you for the next lesson in the MongoDB track.

  5. 29
    MongoDB $unwind Array Aggregation

    Learn how to flatten arrays in MongoDB aggregation pipelines with the $unwind stage. This tutorial covers syntax, use cases, and common pitfalls.

  6. 30
    MongoDB Pagination with skip() and limit()

    Learn to paginate MongoDB results using skip() and limit(). This tutorial covers syntax, efficient paging for large datasets, and common pitfalls.

  7. 31
    MongoDB Facets for Aggregation

    Learn to use facets for multi-dimensional aggregation in MongoDB. This lesson explains how $facet creates multiple aggregations in one stage, covers hands-on exercises, troubleshooting, and next steps.

  8. 32
    Geospatial Queries with 2dsphere Indexes

    Learn to implement geospatial queries with 2dsphere indexes in MongoDB. Step-by-step tutorial covering core concepts, hands-on examples, and troubleshooting tips.

  9. 33
    MongoDB Time-Series Data

    Learn to store and query time-series data in MongoDB with hands-on steps, practical examples, and troubleshooting tips.

  10. 34
    Use Change Streams

    Learn to use change streams in MongoDB to react to data changes in real time. This tutorial covers the core concept, a hands-on exercise, troubleshooting, and what to study next.

  11. 35
    MongoDB Multi-Document Transactions

    Learn how to handle transactions in MongoDB for multi-document updates. This tutorial covers the core concept, step-by-step implementation, hands-on exercises, troubleshooting, and what to study next.

  12. 36
    PyMongo Basics

    Explore the MongoDB driver for Python: PyMongo basics — MongoDB.

    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.