MongoDB Kotlin Driver
Introduction
Welcome to the documentation site for the Kotlin Driver, the official MongoDB driver for server-side Kotlin applications that use coroutines. Download the driver by using Maven or Gradle, or set up a runnable project by following our Quick Start guide.
Tip
Other Kotlin Platforms for MongoDB
If your Kotlin application requires synchronous processing, use the Sync Driver, which uses synchronous operations to make blocking calls to MongoDB.
If you are developing an Android or Kotlin Multiplatform (KMP) application, you can use the MongoDB Atlas Device Kotlin SDK to access Atlas App Services and to manage your Realm data.
Quick Start
Learn how to establish a connection to MongoDB Atlas and begin working with data in the 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 the Usage Examples section.
Fundamentals
Learn how to perform the following tasks using the Kotlin driver in the Fundamentals section:
API Documentation
The MongoDB Kotlin driver API documentation contains several libraries organized by functionality. For detailed information about classes and methods in each library, see the following table for their descriptions and links to the API documentation.
Library | Description |
---|---|
Base BSON classes | |
Classes that support records | |
Shared core classes | |
API |
FAQ
For answers to commonly asked questions about the MongoDB Kotlin Driver, see the Frequently Asked Questions (FAQ) section.
Connection Troubleshooting
For solutions to some issues you might experience when connecting to a MongoDB deployment while using the MongoDB Kotlin Driver, see the Connection Troubleshooting section.
Issues & Help
Learn how to report bugs, contribute to the driver, and find additional resources for asking questions and receiving help in the Issues & Help section.
Compatibility
For the compatibility charts that show the recommended Kotlin Driver version for each MongoDB Server version, see the Compatibility section.
Migrate from KMongo
Learn about the changes needed to migrate from the community-developed KMongo driver to the MongoDB Kotlin Driver in the Migrate from KMongo section.
Validate Driver Artifact Signatures
Learn about how to validate signatures of Kotlin driver artifacts published on Maven in the Validate Driver Artifact Signatures section.
Learn
Visit the Developer Hub to learn more about the MongoDB Kotlin driver.
Developer Hub
The Developer Hub provides tutorials and social engagement for developers.
To learn how to use MongoDB features with the Kotlin driver, see the Kotlin Tutorials and Articles page, which features our Getting Started with the MongoDB Kotlin Driver developer tutorial.
To ask questions and engage in discussions with fellow developers using the Kotlin Driver, visit the MongoDB Developer Community.