MongoDB Tutorial for Beginners (2024)
Ends soon! Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
MongoDB Tutorial for Beginners (2024)
Included with
Recommended experience
Recommended experience
What you'll learn
Learn how to set up MongoDB on Windows and create databases and collections.
Understand the differences between NoSQL and SQL, using MongoDB and MySQL as examples.
Master MongoDB's essential query operations, such as insert(), find(), and sort().
Gain expertise in more advanced MongoDB topics, including aggregation and text indexing.
Skills you'll gain
Tools you'll learn
Details to know
See how employees at top companies are mastering in-demand skills
There are 12 modules in this course
Updated in May 2025.
This course now features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Master the fundamentals of MongoDB, one of the most popular NoSQL databases, through this beginner-friendly course packed with hands-on examples. You'll explore core MongoDB concepts such as collections, documents, and fields, and understand how MongoDB differs from traditional SQL databases like MySQL. By the end of this course, you’ll be comfortable navigating and using MongoDB for real-world applications. The course begins with an introduction to MongoDB and the NoSQL paradigm, followed by installation and setup across different systems. You’ll learn to create and manage databases and collections, and perform essential CRUD operations such as inserting, displaying, and deleting documents. As you progress, you’ll implement advanced features like logical operators, query limitations, sorting, indexing, and text search to refine data retrieval. In later sections, you'll explore performance and diagnostic tools like explain(), stats(), and listCommands(), followed by an introduction to data aggregation and combining limit() and skip() in a single query. Each module is packed with live coding examples to reinforce every concept through practice. This course is ideal for developers, aspiring database administrators, or students looking to learn MongoDB from scratch. No prior database or programming experience is required. However, basic computer skills—such as using the terminal/command prompt and installing software—are recommended.
In this module, we will introduce MongoDB as a powerful NoSQL database, emphasizing its features, unique data structure, and key differences from SQL-based databases like MySQL. You’ll gain an understanding of how MongoDB organizes data and the fundamental concepts of collections and documents.
What's included
3 videos1 reading
3 videos•Total 8 minutes
- Introduction to MongoDB•1 minute
- Introduction and Features•4 minutes
- NoSQL Versus SQL (With Examples - MongoDB Versus MySQL)•3 minutes
1 reading•Total 10 minutes
- Full Course Resources•10 minutes
In this module, we will walk through the installation of MongoDB on Windows 10, including setting up the necessary paths and running MongoDB as a background service (mongod). You'll ensure your system is ready for MongoDB development.
What's included
2 videos1 assignment
2 videos•Total 11 minutes
- Install MongoDB 8 on Windows 10•5 minutes
- Install MongoDB 8 on Windows 11•6 minutes
1 assignment•Total 15 minutes
- MongoDB Installation and Setup - Assessment•15 minutes
In this module, we will guide you through the process of creating a MongoDB database and adding collections within it. You will understand how to structure your data and create containers for your documents.
What's included
2 videos1 assignment
2 videos•Total 8 minutes
- How to create a Database in MongoDB•3 minutes
- How to Create a Collection in MongoDB•6 minutes
1 assignment•Total 15 minutes
- Create a Database and Collection - Assessment•15 minutes
In this module, we will cover the process of deleting collections and databases in MongoDB, exploring how this action removes all associated data. You will learn to manage data deletion and ensure you know when and how to use these commands safely.
What's included
2 videos1 assignment
2 videos•Total 6 minutes
- Drop a Collection•4 minutes
- Drop a Database•2 minutes
1 assignment•Total 15 minutes
- Drop a Collection and Database - Assessment•15 minutes
In this module, we will teach you how to insert documents into MongoDB collections, display and format query results, and understand how to manipulate MongoDB data. You'll also see how to display all collections in a specific database.
What's included
4 videos1 assignment
4 videos•Total 17 minutes
- Display Documents•3 minutes
- Insert Documents•9 minutes
- Display Documents in a Formatted Way - pretty() Method•3 minutes
- Display Collections•2 minutes
1 assignment•Total 15 minutes
- Insert and Display - Assessment•15 minutes
In this module, we will explore the power of MongoDB operators, showing how to use AND, OR, NOR, and NOT to filter and retrieve data based on multiple conditions. These operators will allow you to perform more complex queries.
What's included
4 videos1 assignment
4 videos•Total 14 minutes
- AND Operator•3 minutes
- OR Operator•4 minutes
- NOR Operator•4 minutes
- NOT Operator•3 minutes
1 assignment•Total 15 minutes
- MongoDB Operators - Assessment•15 minutes
In this module, we will focus on how to control the number of documents returned in your queries by using the limit() and skip() methods. You’ll learn how these methods can help with pagination and more efficient data retrieval.
What's included
2 videos1 assignment
2 videos•Total 6 minutes
- Limit Records with the limit() Method•3 minutes
- Skip Documents with the skip() Method•3 minutes
1 assignment•Total 15 minutes
- Limit and Skip Records or Documents - Assessment•15 minutes
In this module, we will guide you through the process of sorting MongoDB query results using the sort() method. You’ll discover how to organize documents by specific fields, in either ascending or descending order.
What's included
1 video1 assignment
1 video•Total 5 minutes
- Sort Records•5 minutes
1 assignment•Total 15 minutes
- Sort Records in MongoDB - Assessment•15 minutes
In this module, we will teach you how to create and delete text indexes in MongoDB. You will understand how text indexing enhances the search functionality within your MongoDB collections.
What's included
1 video1 assignment
1 video•Total 4 minutes
- Create and Delete Text Index•4 minutes
1 assignment•Total 15 minutes
- Text Indexing in MongoDB - Assessment•15 minutes
In this module, we will demonstrate how to conduct text searches on MongoDB collections using the $text operator. This will allow you to retrieve documents based on text search criteria.
What's included
1 video1 assignment
1 video•Total 3 minutes
- Text Search on a Collection in MongoDB•3 minutes
1 assignment•Total 15 minutes
- Text Search in MongoDB - Assessment•15 minutes
In this module, we will cover some advanced MongoDB commands. You’ll learn how to fetch data from collections, understand query execution plans, and gather valuable statistics about your MongoDB databases and collections.
What's included
5 videos1 assignment
5 videos•Total 9 minutes
- find() - Fetch Documents From a Collection•3 minutes
- explain() - Provide Information on the Query Plan•2 minutes
- stats() - Display Statistics of a Database•2 minutes
- listCommands() - Display a List of All Database Commands•1 minute
- getCollectionInfos() - Display Collection Information•2 minutes
1 assignment•Total 15 minutes
- Section Name - Assessment•15 minutes
In this module, we will explore advanced MongoDB techniques, including data aggregation and combining limit/skip in a single query. These tools will enhance your ability to perform sophisticated data manipulations and retrievals.
What's included
2 videos3 assignments
2 videos•Total 8 minutes
- Aggregate Records in MongoDB•3 minutes
- Limit and Skip Records in a Single Query•5 minutes
3 assignments•Total 90 minutes
- Full Course Practice Assessment•15 minutes
- MongoDB Advanced Topics - Assessment•15 minutes
- Full Course Assessment•60 minutes
Instructor
Explore more from Data Analysis
- Status: PreviewM
MongoDB Inc.
Course
- Status: Free Trial
- Status: PreviewE
Edureka
Course
- Status: Free TrialE
EDUCBA
Course
Why people choose Coursera for their career
Frequently asked questions
Yes, you can preview the first video and view the syllabus before you enroll. You must purchase the course to access content not included in the preview.
If you decide to enroll in the course before the session start date, you will have access to all of the lecture videos and readings for the course. You’ll be able to submit assignments once the session starts.
Once you enroll and your session begins, you will have access to all videos and other resources, including reading items and the course discussion forum. You’ll be able to view and submit practice assessments, and complete required graded assignments to earn a grade and a Course Certificate.
More questions
Financial aid available,
