Compatibility
MongoDB Compatibility
The following compatibility table specifies the recommended version or versions of the MongoDB C++ 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. |
C++ Driver Version | MongoDB 8.0 | MongoDB 7.0 | MongoDB 6.0 | MongoDB 5.0 | MongoDB 4.4 | MongoDB 4.2 | MongoDB 4.0 | MongoDB 3.6 | MongoDB 3.4 | MongoDB 3.2 | MongoDB 3.0 | MongoDB 2.6 | MongoDB 2.4 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3.11 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||
3.8 to 3.10 | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
3.7 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | |||||
3.6 | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
3.4 to 3.5 | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ||
3.3 | ✓ | ✓ | ✓ | ✓ | |||||||||
3.1 to 3.2 | ✓ | ✓ | ✓ | ✓ | ✓ | ||||||||
3.0 | ✓ | ✓ | ✓ | ✓ |
Language Compatibility
The following compatibility table specifies the recommended version of the MongoDB C++ Driver for use with a specific version of C++.
The first column lists the driver version.
C++ Driver Version | C++20 | C++17 | C++14 | C++11 |
---|---|---|---|---|
3.8 to 3.11 | ✓ | ✓ | ✓ | ✓ |
3.0 to 3.7 | ✓ | ✓ | ✓ |
For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.