Connecting to MongoDB in Node.js
Learn about the Node.js driver for MongoDB and how to use it to connect to your Node.js applications.
Connecting to MongoDB in Node.js
Unit Overview
In this unit, you will learn about the Node.js driver for MongoDB and how to use it to connect to your Node.js applications. First, we'll use the Yarn package manager to install the Node.js MongoDB driver. Next, we will explore best practices when creating a MongoClient. Finally, we'll troubleshoot a few of the most common connection and authentication issues.
Prerequisite
Lessons in This Unit
Lesson 01: Using MongoDB Node.js Client Libraries
Lesson 02: Connecting to an Atlas Cluster in Node.js Applications
Lesson 03: Troubleshooting a MongoDB Connection in Node.js Applications

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.