MongoDB Node Driver

The official MongoDB Node.js driver allows Node.js applications to connect to MongoDB and work with data. The driver features an asynchronous API which allows you to access method return values through Promises or specify callbacks to access them when communicating with MongoDB.


These docs are for version 3.6 of the MongoDB Node.js driver. If you are looking for an older version of the MongoDB Node.js driver docs, see the legacy Node.js driver documentation. For the main MongoDB documentation, see the MongoDB Manual.

Visit the Developer Hub and MongoDB University for resources related to the Node.js driver.

The Developer Hub contains content, resources, community, and social engagement for developers.

To view articles on Node.js, see the How To's and Articles page.

To view the forum on Node.js, see the forums page.

MongoDB University contains free courses to inspire and educate everyone to learn MongoDB. It has the best-in-class training and empowers everyone to be successful.

M220JS course banner
M220JS: MongoDB for JavaScript Developers
Learn the essentials of Node.js application development with MongoDB.

To get up and running quickly, take a look at the Quick Start to learn how to establish a connection to MongoDB Atlas and begin to work with data.

Whether you are new to MongoDB or you just want to brush up on the core concepts, you can check out the Fundamentals section which features material on using the Node.js driver for the following:

The Usage Examples section provides runnable code snippets and explanations for common methods. We recommend this section for users that are new to the MongoDB Node.js driver.

See the API documentation if you are looking for technical information about classes, methods, and configuration objects within the MongoDB Node.js driver.

The Frequently Asked Questions (FAQ) section provides answers to commonly asked questions about the MongoDB Node.js Driver.

The Issues & Help section explains how to report bugs, contribute to the driver, and find additional resources for asking questions and receiving help.

The Compatibility section shows compatibility charts with the Node.js language and the MongoDB server versions.

The What's New section shows new features and changes in each version.

Give Feedback