MongoDB Java Driver¶
Welcome to the MongoDB Java driver documentation. This documentation is for the synchronous driver. If you are working with asynchronous stream processing and reactive streams, we recommend the Reactive Streams Driver.
The official MongoDB Java driver lets you connect your Java applications to MongoDB and work with your data. On this page, you can find descriptions of each section of the driver documentation and where to go to learn more about the Java driver.
This Quick Start section is where you can establish a connection to MongoDB Atlas and begin working with data.
The Usage Examples section is where you can find runnable code snippets and high-level explanations for common methods.
The Fundamentals section explains how to perform the following tasks using the Java driver:
- Connect to MongoDB
- Use the Versioned API
- Authenticate with MongoDB
- Convert between MongoDB Data Formats and Java Objects
- Read from and Write to MongoDB
- Simplify your Code with Builders
- Transform your Data
- 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 in a Document
- Use a Time Series Collection
The MongoDB Java driver API documentation contains detailed information about classes and methods in the MongoDB Java driver. The driver contains of the following libraries organized by functionality. See the following table for descriptions of each library and links to the API documentation.
The Frequently Asked Questions (FAQ) section provides answers to commonly asked questions about the MongoDB Java 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 JVM and MongoDB server versions.
The What's New section lists new features and changes in each version.
Visit the Developer Hub and MongoDB University to learn more about the MongoDB Java driver.
The Developer Hub provides tutorials and social engagement for developers.
To learn how to use MongoDB features with the Java driver, see the How To's and Articles page.
To ask questions and engage in discussions with fellow developers using the Java Driver, see the forums page.
MongoDB University provides free courses to teach everyone how to use MongoDB.