MongoDB Go Driver
Introduction
Welcome to the documentation site for the official MongoDB Go Driver. You can add the driver to your application to work with MongoDB in Go. Download it using go get or set up a runnable project by following our Quick Start guide.
Connect to a Compatible MongoDB Deployment
You can use the Go driver to connect to MongoDB deployments running on one of the following hosted services or editions:
MongoDB Atlas: the fully managed service for MongoDB deployments in the cloud
MongoDB Enterprise: the subscription-based, self-managed version of MongoDB
MongoDB Community: the source-available, free-to-use, and self-managed version of MongoDB
Quick Start
Learn how to establish a connection to MongoDB Atlas and begin working with data in the Go Driver Quick Start section.
Quick Reference
See driver syntax examples for common MongoDB commands in the Quick Reference section.
What's New
For a list of new features and changes in each version, see the What's New section.
Usage Examples
For fully runnable code snippets and explanations for common methods, see Usage Examples.
Fundamentals
Learn how to perform the following tasks using the Go driver in the Fundamentals section:
API
For detailed information about types and methods in the MongoDB Go driver, see the MongoDB Go Driver API documentation.
FAQ
For answers to commonly asked questions about the MongoDB Go Driver, see FAQ section.
Connection Troubleshooting
For solutions to some issues you might see when connecting to a MongoDB deployment while using the MongoDB Go Driver, see Connection Troubleshooting.
Issues & Help
Learn how to report bugs, contribute to the driver, and find additional resources for asking questions in the Issues & Help section.
Compatibility
For the compatibility charts that show the recommended Go Driver version for each MongoDB Server version, see Compatibility.
Learn
Visit the Developer Hub and MongoDB University to learn more about the MongoDB Go Driver.
Developer Hub
The Developer Hub provides tutorials and social engagement for developers.
To learn how to use MongoDB features with the Go driver, see the How To's and Articles page.
To ask questions and engage in discussions with fellow developers using the Go Driver, see the forums page.