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.
Go Driver Version | MongoDB 8.0 | MongoDB 7.0 | MongoDB 6.1 | MongoDB 6.0 | MongoDB 5.0 | MongoDB 4.4 | MongoDB 4.2 | MongoDB 4.0 | MongoDB 3.6 |
---|---|---|---|---|---|---|---|---|---|
2.2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ |
2.1 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.12 to 2.0 | ⊛ [1] | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
1.11 | ⊛ | ⊛ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
[1] | Go driver v1.17 and v2.0 are partially compatible with MongoDB Server 8.0 but do not support client bulk write. |
Language Compatibility
The MongoDB Go Driver requires Go 1.18 or later.
For more information on how to read the compatibility tables, see our guide on MongoDB Compatibility Tables.