For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

MongoDB Scala Driver

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

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

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

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

Learn how to insert, query, update, and delete data, and how to access results from an Observable, in the CRUD Operations section.

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

Learn how to work with BSON, Extended JSON, and other data formats in the Data Formats section.

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

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

Learn how to run MongoDB Search queries in the Run MongoDB Search Queries section.

Learn how to run MongoDB Vector Search queries in the MongoDB Vector Search section.

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

Learn how to authenticate your application and encrypt your data in the Secure Your Data section.

Find information about new features, driver version compatibility, and upgrade steps in the Reference section.

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

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

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

You can find support for general questions by using the MongoDB Stack Overflow tag or the MongoDB Reddit community.