Skip to main content
HomePython

Course

Introduction to MongoDB in Python

IntermediateSkill Level
4.7+
360 reviews
Updated 09/2025
Learn to manipulate and analyze flexibly structured data with MongoDB.
Start Course for Free
PythonData Engineering
3 hr
10 videos
32 Exercises
2,600 XP
24,010
Statement of Accomplishment

Create Your Free Account

Continue with GoogleShow more options

or


By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Loved by learners at thousands of companies

Group

Training a Team?

Try for Business

Course Description

Break free from rigid database structures and discover the power of MongoDB, the document database that adapts to your data. In this hands-on course, you'll master MongoDB operations through the PyMongo library. You'll query, filter, and manipulate documents and learn how to leverage MongoDB's flexible schema while also implementing validation when structure matters. From basic CRUD operations to advanced query operators, sorting, projections, and bulk operations, you'll gain practical skills to build and maintain modern data applications. This course equips you with the essential MongoDB skills that today's data professionals need.

Prerequisites

Data Types in PythonNoSQL Concepts
1

Getting Started with MongoDB

A soft landing into the world of MongoDB and its key features as a NoSQL database. Learn how MongoDB compares to relational databases, and what it offers. Connect to a MongoDB server and database and retrieve your first documents.
Start Chapter
2

Filters, operators, and query options

Learn how to have MongoDB only return exactly what you need with filters and operators. Discover how to sort records, limit the number of documents returned, and retrieve the count of matching documents for specific queries.
Start Chapter
3

Inserting, Updating & Deleting Records

Explore the ability to insert entirely one or multiple new records into a MongoDB collection. Learn how to update individual or multiple documents simultaneously, and replace entire documents within a database. Get experience with deleting records from a collection.
Start Chapter
4

Enforcing Schema and Composing Multiple Operations

Learn how to use define and enforce structure in MongoDB documents when working with PyMongo. Explore using .bulk_write() to efficiently batch multiple write operations into a single request, improving performance while maintaining control over ordered execution and error handling.
Start Chapter
Introduction to MongoDB in Python
Course
Complete

Earn Statement of Accomplishment

Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
Enroll Now

Don’t just take our word for it

*4.7
from 360 reviews
78%
21%
0%
0%
0%
  • Jingjun (Victor)
    2 days ago

  • Jessé
    last week

  • Richa
    last week

    A great introductory course to MongoDB. The instructions and code comments need to be updated to reflect the requirements for $lte and $gte operators.

  • Antônio Willian
    last week

  • Alana Maria
    last week

  • Jesus Ulysses
    last week

Jingjun (Victor)

Jessé

Antônio Willian

FAQs

What Python library is used to interact with MongoDB in this course?

You will use PyMongo, the official Python driver for MongoDB, to perform queries, filters, inserts, updates, deletions, and bulk operations.

Is this course suitable for beginners?

No. This is an advanced course with ten prerequisites covering Python, SQL, relational databases, database design, and NoSQL concepts. Strong foundational knowledge is expected.

What MongoDB operations will I learn?

You will learn full CRUD operations: querying with filters and operators, sorting, projections, inserting single and multiple documents, updating, replacing, and deleting records.

Does the course cover schema validation in MongoDB?

Yes. You will learn how to leverage MongoDB's flexible schema while also implementing validation when structure matters for your application.

How does MongoDB compare to relational databases in this course?

Chapter 1 explains MongoDB's key features as a NoSQL document database, comparing its flexible document model to the rigid structure of traditional relational databases.

Join over 19 million learners and start Introduction to MongoDB in Python today!

Create Your Free Account

Continue with GoogleShow more options

or


By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.

Grow your data skills with DataCamp for Mobile

Make progress on the go with our mobile courses and daily 5-minute coding challenges.