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.

    Take the free online course taught by MongoDB

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

    Quick Start

    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:

    Usage Examples

    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.

    Issues & Help

    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.