MongoDB Scala Driver
Introduction
Welcome to the documentation site for the MongoDB Scala Driver, the official driver for asynchronous stream processing. Download the driver by following the Installation guide, then set up a runnable project by following the Quick Start guide.
To access MongoDB by using Java instead of Scala, use the Java Sync Driver or the asynchronous Java Reactive Streams Driver.
Compatibility
MongoDB Compatibility
The following compatibility table specifies the recommended version or versions of the MongoDB Scala Driver for use with a specific version of MongoDB.
The first column lists the driver version.
Important
MongoDB ensures compatibility between the MongoDB Server and the drivers for three years after the server version's end of life (EOL) date. To learn more about the MongoDB release and EOL dates, see MongoDB Software Lifecycle Schedules.
Compatibility Table Legend
Icon | Explanation |
---|---|
✓ | All features are supported. |
⊛ | The Driver version will work with the MongoDB version, but not all
new MongoDB features are supported. |
No mark | The Driver version is not tested with the MongoDB version. |
Scala Driver Version | MongoDB 7.0 | MongoDB 6.1 | MongoDB 6.0 | MongoDB 5.0 | MongoDB 4.4 | MongoDB 4.2 | MongoDB 4.0 | MongoDB 3.6 | MongoDB 3.4 |
---|---|---|---|---|---|---|---|---|---|
5.1 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
5.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
4.11 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
4.10 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
4.9 | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
4.8 | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
4.7 | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
4.6 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
4.5 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
4.4 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
4.3 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
4.2 | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ |
4.1 | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ |
4.0 | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ |
The driver does not support older versions of MongoDB.
Language Compatibility
The following compatibility table specifies the recommended version or versions of the MongoDB Scala Driver for use with a specific version of Scala.
The first column lists the driver version.
Scala Driver Version | Scala 2.13 | Scala 2.12 | Scala 2.11 |
---|---|---|---|
5.1 | ✓ | ✓ | ✓ |
5.0 | ✓ | ✓ | ✓ |
4.11 | ✓ | ✓ | ✓ |
4.10 | ✓ | ✓ | ✓ |
4.9 | ✓ | ✓ | ✓ |
4.8 | ✓ | ✓ | ✓ |
4.7 | ✓ | ✓ | ✓ |
4.6 | ✓ | ✓ | ✓ |
4.5 | ✓ | ✓ | ✓ |
4.4 | ✓ | ✓ | ✓ |
4.3 | ✓ | ✓ | ✓ |
4.2 | ✓ | ✓ | ✓ |
4.1 | ✓ | ✓ | ✓ |
For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.
How To Get Help
Ask questions on our MongoDB Community Forums
Visit our Support Channels
See Issues & Help
Validate Driver Artifact Signatures
Learn about how to validate signatures of Scala driver artifacts published on Maven in the Validate Driver Artifact Signatures section.