Welcome to the official MongoDB Node.js driver documentation.
Connect your Node.js applications to MongoDB and work with your data using the Node.js driver. The driver features an asynchronous API that you can use to access method return values through Promises or specify callbacks to access them when communicating with MongoDB.
On this page, you can find descriptions of each section of the driver documentation.
Learn how to establish a connection to MongoDB Atlas and begin working with data in the Quick Start section.
See driver syntax examples for common MongoDB commands in the Quick Reference section.
For fully runnable code snippets and explanations for common methods, see the Usage Examples section.
Learn how to perform the following tasks using the Node.js driver in the Fundamentals section:
- Connect to MongoDB
- Authenticate with MongoDB
- Read from and Write to MongoDB
- Access Return Values
- Transform your Data
- Create and Manage Transactions
- Create Indexes to Speed Up Queries
- Sort Using Collations
- Log Events in the Driver
- Monitor Driver Events
- Store and Retrieve Large Files in MongoDB
- Encrypt Fields from the Client
For detailed information about classes and methods in the MongoDB Node.js driver, see the MongoDB Node.js driver API documentation.
For answers to commonly asked questions about the MongoDB Node.js Driver, see the Frequently Asked Questions (FAQ) section.
Learn how to report bugs, contribute to the driver, and find additional resources for asking questions and receiving help in the Issues & Help section.
For the compatibility charts that show the recommended Node.js Driver version for each MongoDB Server version, see the Compatibility section.
For a list of new features and changes in each version, see the What's New section.
Visit the Developer Hub and MongoDB University to learn more about the MongoDB Node.js driver.
The Developer Hub provides tutorials and social engagement for developers.
To learn how to use MongoDB features with the Node.js driver, see the How To's and Articles page.
To ask questions and engage in discussions with fellow developers using the Node.js driver, see the forums page.
MongoDB University provides free courses to teach everyone how to use MongoDB.