
Loved by learners at thousands of companies
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.
Training 2 or more people?
Get your team access to the full DataCamp platform, including all the features.- 1
Getting Started with MongoDB
FreeA 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.
- 2
Filters, operators, and query options
FreeLearn 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.
- 3
Inserting, Updating & Deleting Records
FreeExplore 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.
Inserting documents50 xpInserting a single document100 xpInserting multiple documents100 xpUpdating and replacing documents50 xpUpdating a single document100 xpUpdating multiple documents100 xpReplacing an entire document100 xpDeleting documents50 xpDeleting a single document100 xpDeleting multiple MongoDB documents100 xp - 4
Enforcing Schema and Composing Multiple Operations
FreeLearn 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.
Training 2 or more people?
Get your team access to the full DataCamp platform, including all the features.datasets
Popular movies datasetcollaborators


Machine Learning Researcher
Filip is the passionate developer behind several of DataCamp's most popular Python, SQL, and R courses. He also led the development of DataLab, DataCamp's collaborative data science notebook. Holding degrees in Electrical Engineering and Artificial Intelligence, he currently works as a freelance machine learning researcher and data science educator.
Join over 17 million learners and start Introduction to MongoDB in Python today!
Create Your Free Account
or
By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.