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

ReleaseDocumentation
4.1.1 Reference | API
4.0.5 Reference | API
3.12.7 Reference | API
3.11.2 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