Docs Menu
Docs Home
/ /

MongoDB Go Driver

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.

Learn how to install the driver, establish a connection to MongoDB, and begin working with data in the Getting Started with Go tutorial.

Learn how to create and configure a connection to a MongoDB deployment in the Connect section.

Learn how to use the context package from the Go standard library to manage blocking method calls in the Context Package guide.

Learn how to interact with MongoDB databases and collections in the Databases and Collections section.

Learn how to find, update, and delete data in the CRUD Operations section.

Learn how to use the Go driver to perform aggregation operations in the Aggregation section.

Learn how to work with specialized data formats in the Data Formats section.

Learn how to work with common types of indexes in the Indexes section.

Learn how to run a database command in the Run a Database Command section.

Learn how to work with time series collections in the Time Series Collections guide.

Learn how to use Atlas Search to build full-text search capabilities in the Run an Atlas Search Query guide.

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.

Learn how to monitor changes to your application and write them to logs in the Monitoring and Logging section.

Learn about ways you can authenticate your application and secure your data in the Security section.

Find more information about Go driver versions, compatibility, release notes, and quick reference syntax for common commands in the Reference section.

For detailed information about types and methods in the MongoDB Go driver, see the MongoDB Go Driver API documentation.

For solutions to some issues you might see when connecting to a MongoDB deployment while using the MongoDB Go Driver, see Connection Troubleshooting.

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.

Next

Get Started

close