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.
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.
Take the free online course taught by 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.
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.
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:
- Connection Guide: connect to a MongoDB instance or replica set
- Authentication: configure authentication and log a user in
- CRUD Operations: read and write data to MongoDB
- Indexes: create and design indexes to make your queries efficient
- Collations: apply language-specific sorting rules to your query results
- Logging: configure the driver to log MongoDB operations
- Monitoring: configure the driver to monitor MongoDB server events
- GridFS: store and retrieve large files in MongoDB
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.
The What's New section shows new features and changes in each version.