MongoDB CRUD Operations in Node.js
Learn how to perform basic CRUD operations with the MongoDB Node.js driver.
MongoDB CRUD Operations in Node.js
Unit Overview
In this unit, you will learn how to perform basic CRUD operations with Node.js. First, you will learn how BSON documents are expressed in Node.js. Then, you'll learn how to insert, query and retrieve, update, and delete documents in a Node.js application. Finally, you'll learn how to create a multi-document transaction.
Prerequisites
Lessons in This Unit
- Lesson 01: Working with MongoDB Documents in Node.js
- Lesson 02: Inserting a Document in Node.js Applications
- Lesson 03: Querying a MongoDB Collection in Node.js Applications
- Lesson 04: Updating Documents in Node.js Applications
- Lesson 05: Deleting Documents in Node.js Applications
- Lesson 06: Creating MongoDB Transactions in Node.js Applications
-
01.
-
02.Lesson 2: Inserting a Document in Node.js Applications
- Learn
- Practice
-
03.Lesson 3: Querying a MongoDB Collection in Node.js Applications
- Learn
- Practice
-
04.Lesson 4: Updating Documents in Node.js Applications
- Learn
- Practice
-
05.Lesson 5: Deleting Documents in Node.js Applications
- Learn
- Practice
-
06.Lesson 6: Creating MongoDB Transactions in Node.js Applications
- Learn
- Practice
-
07.Conclusion
- Learn

John McCambridge I University Curriculum Engineer
John is a Curriculum Engineer on the University team at MongoDB. Before his work as a Curriculum Engineer, he was an instructor and teaching assistant for coding boot camps at UT (Austin), and UCLA. Additionally, he worked as a QA engineer for a startup called Coder and spent five years at Apple Inc. John is a passionate software engineer and eductor who enjoys taking complex topics and making them digestible for the community.

Emily Pope | Senior Curriculum Designer
Emily is a Senior Curriculum Designer at MongoDB. Prior to MongoDB, Emily worked closely with professors at MIT and Columbia to design bootcamps in full stack development and data science at Emeritus. She also worked as an instructional designer on database and computer science learning experiences at Cengage. Emily loves learning about the everchanging tech space and is passionate about making these skills accessible to a global audience.