Compatibility
MongoDB Compatibility
The following compatibility table specifies the recommended version of the MongoDB Go Driver for use with a specific version of MongoDB.
The first column lists the driver version.
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. |
Go Driver Version | 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 |
---|---|---|---|---|---|---|---|---|---|---|
1.11 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ⊛ | ⊛ | ⊛ | ⊛ |
1.10 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.9 | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.8 | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.7 | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.6 | ⊛ | ✓ [1] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.5 | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.4 | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.3 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.2 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.1 | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.0 | ⊛ | ⊛ | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
[1] | The 1.6 driver does not support snapshot reads on secondaries. For more information, see the MongoDB Server version 5.0 release notes. |
Language Compatibility
The following compatibility table specifies the minimum version of the Go programming language to use with versions of the MongoDB Go Driver.
The first column lists the driver version.
Go Driver Version | Minimum Go Language Version |
---|---|
1.11 | 1.13 |
1.10 | 1.10 |
1.9 | 1.10 |
1.8 | 1.10 |
1.7 | 1.10 |
1.6 | 1.10 |
1.5 | 1.10 |
1.4 | 1.10 |
1.3 | 1.10 |
1.2 | 1.10 |
1.1 | 1.10 |
1.0 | 1.10 |
For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.