Overview
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 by using go get or set up a runnable project by following the Get Started guide.
Get Started
Learn how to install the driver, establish a connection to MongoDB, and begin working with data in the Getting Started with Go tutorial.
Connect to MongoDB
Learn how to create and configure a connection to a MongoDB deployment in the Connect section.
Context Package
Learn how to use the context package from the Go standard library to manage blocking method calls in the Context Package guide.
Databases and Collections
Learn how to interact with MongoDB databases and collections in the Databases and Collections section.
Read and Write Data
Learn how to find, update, and delete data in the CRUD Operations section.
Transform Your Data with Aggregation
Learn how to use the Go driver to perform aggregation operations in the Aggregation section.
Data Formats
Learn how to work with specialized data formats in the Data Formats section.
Optimize Queries with Indexes
Learn how to work with common types of indexes in the Indexes section.
Run a Database Command
Learn how to run a database command in the Run a Database Command section.
Time Series
Learn how to work with time series collections in the Time Series Collections guide.
Atlas Search
Learn how to use Atlas Search to build full-text search capabilities in the Run an Atlas Search Query guide.
Atlas Vector Search
Learn how to use Atlas Vector Search to query your Atlas data based on semantic meaning rather than keyword matches in the Run an Atlas Vector Search Query guide.
Monitoring and Logging
Learn how to monitor changes to your application and write them to logs in the Monitoring and Logging section.
Secure Your Data
Learn about ways you can authenticate your application and secure your data in the Security section.
Reference
Find more information about Go driver versions, compatibility, release notes, and quick reference syntax for common commands in the Reference section.
API
For detailed information about types and methods in the MongoDB Go driver, see the MongoDB Go Driver API documentation.
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.
To ask questions and engage in discussions with fellow developers using the Go Driver, see the forums page.