Introduction to MongoDB
Ends soon! Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Introduction to MongoDB
23,281 already enrolled
Included with
110 reviews
Recommended experience
110 reviews
Recommended experience
What you'll learn
Create, connect to and manage MongoDB databases
Perform fundamental CRUD operations in MongoDB
Create data models, aggregation pipelines, indexes and transactions
Add a search feature to your application using MongoDB Atlas Search
Skills you'll gain
Details to know
11 assignments
See how employees at top companies are mastering in-demand skills
There are 11 modules in this course
"Introduction to MongoDB" guides you through the foundational skills and knowledge you need to get started with MongoDB. Get an introduction to MongoDB Atlas, the developer data platform, and how to create and deploy an Atlas cluster. Discover how MongoDB structures data in documents similar to JSON objects, making it flexible and developer friendly. Learn how to connect to a MongoDB database and perform simple CRUD operations and other key tasks, such as aggregation, indexing, data modeling, transactions, and creating a search experience for the users of your app. By the end of this course, you’ll have the skills you need to start working with MongoDB.
In this module, you’ll learn about Atlas, MongoDB’s multi-cloud developer data platform. First, you will become familiar with the tools and services that are available to you when you set up an Atlas account. You’ll also learn about how MongoDB Atlas stores and hosts data with Atlas clusters, a global, multi-cloud database service. Finally, you’ll set up a free Atlas account, launch your own free-tier Atlas cluster, and load sample data into your cluster so that you can get started with using MongoDB Atlas and the developer data platform.
What's included
3 videos1 reading1 assignment
3 videos•Total 13 minutes
- Introduction to the MongoDB Atlas, the Developer Data Platform•5 minutes
- Creating and Deploying an Atlas Cluster•7 minutes
- Getting Started with MongoDB Atlas, the Developer Data Platform Review•1 minute
1 reading•Total 4 minutes
- Resources•4 minutes
1 assignment•Total 25 minutes
- Module 1 Assessment•25 minutes
In this module you’ll learn how MongoDB stores data and how MongoDB fits into Atlas, the developer data platform. You'll also review common use cases for MongoDB. Next, you'll learn the value types that MongoDB supports, how MongoDB creates unique identifiers, and what it means that MongoDB has a “flexible schema.” Finally, you’ll begin to manage databases, collections, and documents in the MongoDB Atlas Data Explorer. This module will give you a solid foundation in the concepts and skills that you'll need to work with MongoDB.
What's included
4 videos3 readings1 assignment
4 videos•Total 16 minutes
- Introduction to MongoDB•4 minutes
- The MongoDB Document Model•4 minutes
- Managing Databases, Collections, and Documents in Atlas Data Explorer•6 minutes
- Overview of MongoDB and the Document Model Review•2 minutes
3 readings•Total 30 minutes
- Code Recap: The MongoDB Document Model•5 minutes
- Activity: Managing Databases, Collections, and Documents in Atlas Data Explorer•20 minutes
- Resources•5 minutes
1 assignment•Total 30 minutes
- Module 2 Assessment•30 minutes
This module will show you how to connect to MongoDB databases - you'll use MongoDB connection strings, connect to MongoDB with the mongo shell, connect to MongoDB Compass, and learn how to troubleshoot common connection issues.
What's included
6 videos3 readings1 assignment
6 videos•Total 20 minutes
- Using MongoDB Connection Strings•4 minutes
- Connecting to a MongoDB Atlas Cluster with the Shell•4 minutes
- Connecting to a MongoDB Atlas Cluster with Compass•5 minutes
- Connecting to a MongoDB Atlas Cluster from an Application•2 minutes
- Troubleshooting MongoDB Atlas Connection Errors•4 minutes
- Connecting to your Database Review•2 minutes
3 readings•Total 35 minutes
- Activity: Locating the MongoDB Connection String•15 minutes
- Activity: Install MongoDB Compass•15 minutes
- Resources•5 minutes
1 assignment•Total 30 minutes
- Module 3 Assessment•30 minutes
In this module, you will be introduced to CRUD operations in MongoDB by inserting and finding documents. Inserting and finding documents will help you discover the ease and usability of MongoDB. You'll also build your own queries that use comparison and logical operators. Using operators will make your queries more precise and, in turn, make your application easier to develop. Finally, you'll learn how to query elements in an array. Arrays are a crucial data type that you will encounter frequently, so it's important that you have a solid understanding of how to work with them.
What's included
6 videos6 readings1 assignment
6 videos•Total 17 minutes
- Inserting Documents in a MongoDB Collection•3 minutes
- Finding Documents in a MongoDB Collection•3 minutes
- Finding Documents by Using Comparison Operators•3 minutes
- Querying on Array Elements in MongoDB•3 minutes
- Finding Documents by Using Logical Operators•4 minutes
- MongoDB CRUD Operations: Insert and Find Documents Review•1 minute
6 readings•Total 60 minutes
- Code Recap: Inserting Documents in a MongoDB Collection•10 minutes
- Code Recap: Finding Documents in a MongoDB Collection•10 minutes
- Code Recap: Finding Documents by Using Comparison Operators•10 minutes
- Code Recap: Querying on Array Elements in MongoDB•10 minutes
- Code Recap: Finding Documents by Using Logical Operators•15 minutes
- Resources•5 minutes
1 assignment•Total 30 minutes
- Module 4 Assessment•30 minutes
In this module, you’ll learn how to update, replace, and delete documents in MongoDB. These commands will help you manipulate data in your database and will prepare you to build MongoDB into your own apps. We will replace entire documents, update individual fields in a document, insert new documents, and remove documents from a database. By the end of this module, you'll be able to execute most of the common database operations.
What's included
6 videos6 readings1 assignment
6 videos•Total 18 minutes
- Replacing a Document in MongoDB•3 minutes
- Updating MongoDB Documents by Using updateOne()•6 minutes
- Updating MongoDB Documents by Using findAndModify()•3 minutes
- Updating MongoDB Documents by Using updateMany()•3 minutes
- Deleting Documents in MongoDB•3 minutes
- MongoDB CRUD Operations: Replace and Delete Documents Review•1 minute
6 readings•Total 50 minutes
- Code Recap: Replacing a Document in MongoDB•10 minutes
- Code Recap: Updating MongoDB Documents by Using updateOne()•15 minutes
- Code Recap: Updating MongoDB Documents by Using findAndModify()•5 minutes
- Code Recap: Updating MongoDB Documents by Using updateMany()•5 minutes
- Code Recap: Deleting Documents in MongoDB•5 minutes
- Resources•10 minutes
1 assignment•Total 30 minutes
- Module 5 Assessment•30 minutes
In this module, you’ll learn how to modify query results in MongoDB by using sorts, limits, projections, and counts. First, you will learn how to organize query results by sorting and limiting the documents that are returned. Then you'll explore how to use projection to return selected fields from a query. Finally, you’ll learn how to count the number of documents that match a query. Using these query modifications will help enhance the functionality and performance of your applications.
What's included
4 videos4 readings1 assignment
4 videos•Total 20 minutes
- Sorting and Limiting Query Results in MongoDB•7 minutes
- Returning Specific Data from a Query in MongoDB•7 minutes
- Counting Documents in a MongoDB Collection•3 minutes
- MongoDB CRUD Operations: Modifying Query Results Review•2 minutes
4 readings•Total 50 minutes
- Code Recap: Sorting and Limiting Query Results in MongoDB•20 minutes
- Code Recap: Returning Specific Data from a Query in MongoDB•15 minutes
- Code Recap: Counting Documents in a MongoDB Collection•10 minutes
- Resources•5 minutes
1 assignment•Total 30 minutes
- Module 6 Assessment•30 minutes
In this module, you will learn about the aggregation pipeline, which is one of MongoDB's most powerful features. You will learn how to use the aggregation pipeline to filter, sort, and organize the data in your collections.
What's included
6 videos5 readings1 assignment
6 videos•Total 17 minutes
- Introduction to MongoDB Aggregation•3 minutes
- Using $match and $group Stages in a MongoDB Aggregation Pipeline•3 minutes
- Using $sort and $limit Stages in a MongoDB Aggregation Pipeline•3 minutes
- Using $project, $count, and $set Stages in a MongoDB Aggregation Pipeline•4 minutes
- Using $out Stage in a MongoDB Aggregation Pipeline•3 minutes
- MongoDB Aggregation Review•1 minute
5 readings•Total 40 minutes
- Code Recap: Introduction to MongoDB Aggregation•5 minutes
- Code Recap: Using $match and $group Stages in a MongoDB Aggregation Pipeline•10 minutes
- Code Recap: Using $sort and $limit Stages in a MongoDB Aggregation Pipeline•10 minutes
- Code Recap: Using $project, $count, and $set Stages in a MongoDB Aggregation Pipeline•10 minutes
- Resources•5 minutes
1 assignment•Total 30 minutes
- Module 7 Assessment•30 minutes
In this module, you will learn about indexes, how indexes support the efficient execution of queries in MongoDB, the trade-offs associated with using indexes, how to create Single Field and Compound Index, what Multikey indexes are, and how to see if queries are using indexes. Finally, you will learn how to delete an index.
What's included
6 videos5 readings1 assignment
6 videos•Total 25 minutes
- Using MongoDB Indexes in Collections•4 minutes
- Creating a Single Field Index in MongoDB•5 minutes
- Creating a Multikey Index in MongoDB•3 minutes
- Working with Compound Indexes in MongoDB•6 minutes
- Deleting MongoDB Indexes•4 minutes
- MongoDB Indexes Review•2 minutes
5 readings•Total 65 minutes
- Code Recap: Creating a Single Field Index in MongoDB•15 minutes
- Code Recap: Creating a Multikey Index in MongoDB•10 minutes
- Code Recap: Working with Compound Indexes in MongoDB•20 minutes
- Code Recap: Deleting MongoDB Indexes•15 minutes
- Resources•5 minutes
1 assignment•Total 45 minutes
- Module 8 Assessment•45 minutes
Atlas Search allows you to quickly and easily add a search feature to your application. Search can be tricky to tackle, especially if you have a lot of data that you need to sort and filter quickly. MongoDB Atlas has a built-in tool that allows you to add search functionality to your application, and customize the users’ results with weighted values, analyzers, and groupings. This module will show you how to use Atlas Search to customize your searches.
What's included
6 videos3 readings1 assignment
6 videos•Total 20 minutes
- Using Relevance-Based Search and Search Indexes•3 minutes
- Creating a Search Index with Dynamic Field Mapping•3 minutes
- Creating a Search Index with Static Field Mapping•3 minutes
- Using $search and Compound Operators•5 minutes
- Group Search Results by Using Facets•4 minutes
- MongoDB Atlas Search Review•1 minute
3 readings•Total 15 minutes
- Code Recap: Using $search and Compound Operators•5 minutes
- Code Recap: Group Search Results by Using Facets•5 minutes
- Resources•5 minutes
1 assignment•Total 30 minutes
- Module 9 Assessment•30 minutes
In this module, you will learn the basics of data modeling. Specifically, you'll learn about the purpose of data modeling, the different types of relationships that your data can have and how to model them, and the differences between embedding and referencing. Then, you will learn how to scale your data model and use Atlas Tools for schema help.
What's included
8 videos2 readings1 assignment
8 videos•Total 20 minutes
- Introduction to Data Modeling•3 minutes
- Types of Data Relationships•3 minutes
- Modeling Data Relationships•2 minutes
- Embedding Data in Documents•3 minutes
- Referencing Data in Documents•1 minute
- Scaling a Data Model•3 minutes
- Using Atlas Tools for Schema Help•3 minutes
- Introduction to MongoDB Data Modeling Review•1 minute
2 readings•Total 7 minutes
- Embedding vs. Referencing•2 minutes
- Resources: Introduction to MongoDB Data Modeling•5 minutes
1 assignment•Total 45 minutes
- Module 10 Assessment•45 minutes
In this module, you'll learn about ACID transactions in MongoDB. ACID transactions guarantee that certain database operations, such as the transfer of value from one account to another, succeed together or do not happen not at all. This ensures the integrity of the data in a database. We'll begin with an introduction to ACID transactions. Then, we'll explore how ACID transactions work with the document model in MongoDB. Finally, we'll cover how to create and cancel multi-document transactions in MongoDB.
What's included
4 videos2 readings1 assignment
4 videos•Total 15 minutes
- Introduction to ACID Transactions•4 minutes
- ACID Transactions in MongoDB•3 minutes
- Using Transactions in MongoDB•8 minutes
- Transactions Review•1 minute
2 readings•Total 15 minutes
- Code Recap: Multi-Document Transactions•10 minutes
- Resources: Transactions•5 minutes
1 assignment•Total 30 minutes
- Module 11 Assessment•30 minutes
Instructors
Offered by
Explore more from Data Management
Course
Category: Credit offeredCourse
Status: Free TrialCategory: Credit offered- E
Edureka
Course
Category: PreviewCategory: Credit offered Course
Status: Free TrialCategory: Credit offered
Why people choose Coursera for their career
Learner reviews
- 5 stars
71.81%
- 4 stars
23.63%
- 3 stars
2.72%
- 2 stars
0%
- 1 star
1.81%
Showing 3 of 110
Reviewed on Aug 19, 2025
Thanks u, From Deeply Heart. This Course was Helpful and pretty, and I learned Great Things About MongoDB, It was perfect for a beginner
Reviewed on Jun 30, 2024
I can confidently say that I've learned the basics of MongoDB. Great course.
Reviewed on Jan 31, 2024
Very informative. Some of the examples cannot be followed because the data is not available.
Frequently asked questions
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you purchase a Certificate you get access to all course materials, including graded assignments. Upon completing the course, your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.
More questions
Financial aid available,
