MongoDB Java Drivers

The next generation Java drivers for MongoDB

Latest documentation

Introduction

The official MongoDB Java Drivers providing both synchronous and asynchronous interaction with MongoDB.

Features

BSON Library
A standalone BSON library, with a new Codec infrastructure that you can use to build high-performance encoders and decoders without requiring an intermediate Map instance.
MongoDB Driver
An updated Java driver that includes the legacy API as well as a new generic MongoCollection interface that complies with a new cross-driver CRUD specification.
MongoDB Reactive Streams Driver
Providing asynchronous stream processing with non-blocking back pressure for MongoDB. Fully implements the Reactive Streams API for providing interop with other reactive streams within the JVM ecosystem.

From 4.0 documentation for the MongoDB Java Reactive Streams Driver is available here, alongside all the JVM drivers. For 1.x documentation see the old Reactive Streams Java Driver documentation.
MongoDB Scala Driver
Providing idiomatic Scala support for MongoDB.

From 4.0 documentation for the MongoDB Scala Driver is available here, alongside all the JVM drivers. For 2.x documentation see the old Scala Driver documentation.

Releases

Release Documentation
5.0.0 Reference | API
4.11.1 Reference | API
4.10.2 Reference | API
4.9.0 Reference | API
4.8.0 Reference | API
4.7.2 Reference | API
4.6.0 Reference | API
4.5.1 Reference | API
4.4.1 Reference | API
4.3.4 Reference | API
4.2.3 Reference | API
4.1.2 Reference | API
4.0.6 Reference | API
3.12.14 Reference | API
3.11.3 Reference | API
3.10.2 Reference | API
3.9.0 Reference | API
3.8.2 Reference | API
3.7.1 Reference | API
3.6.4 Reference | API
3.5.0 Reference | API
3.4.3 Reference | API

MongoDB University

M220J: MongoDB for Java Developers

Learn the essentials of Java application development with MongoDB.

Learn More