ANNOUNCEMENT: Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.
Learn more
Docs Menu

MongoDB Ruby Driver

Welcome to the documentation site for the MongoDB Ruby Driver, the official MongoDB driver for Ruby applications.

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

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

Learn how to use the Ruby driver to work with MongoDB databases and collections in the Databases and Collections section.

Learn how you can retrieve data from MongoDB in the Read Data from MongoDB section.

Learn how you can write data to MongoDB in the Write Data to MongoDB section.

Learn how to configure read and write operations on a replica set in the CRUD Operations on Replica Sets section.

Learn how to work with common types of indexes in the Optimize Queries by Using Indexes section.

Learn how to monitor change events in the Monitor Your Application section.

Learn how to use the Ruby driver to perform aggregation operations in the Transform Your Data with Aggregation section.

Learn how to authenticate your application and encrypt your data in the Security section.

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

For a list of new features and changes in each version, see the What's New section.

Learn what changes you must make to your application to upgrade driver versions in the Upgrade Driver Versions section.

To learn about the versions of the MongoDB Server and the Ruby language that are compatible with each version of the Ruby driver, see the Compatibility section.

Learn how to report bugs, contribute to the driver, and find more resources for asking questions and receiving help in the Issues & Help section.

The Developer Hub provides tutorials and social engagement for developers.

To ask questions and engage in discussions with fellow developers who use the Ruby driver, see the forums page.