The MongoDB Go Driver 2.0 is Here and Ready for Production!
We’re excited to announce the official release of MongoDB Go Driver 2.0! A sincere thank you to all the developers who provided invaluable feedback during the beta phase.
What’s New in 2.0?
Version 2.0 brings several enhancements designed to improve your development experience:
- Simplified Client Side Operations Timeout (CSOT) experience
- OpenID Connect (OIDC) support
- Cleaner, more idiomatic Go code
- More descriptive and actionable error messages
- A simplified package structure for easier navigation
- A streamlined interface for improved usability
Explore the full release notes: MongoDB Docs
Impact on Older Versions
New features will no longer be added to the 1.x versions. Critical bug fixes and security patches will continue to be backported to 1.x versions until January 15, 2026. After this date, support for 1.x versions will be discontinued.
How to Upgrade to 2.0
Ready to upgrade? Our migration guide provides detailed instructions to help you navigate the transition. Comprehensive documentation is also available on pkg.go.dev.
Questions? Feedback?
We’d love to hear from you! Share your questions and feedback on the MongoDB Community Forums, and don’t forget to tag them with “golang.”
Happy coding!
The MongoDB Go Driver Team