MongoDB Kotlin Driver
Introduction
Welcome to the documentation site for the Kotlin Driver, the official MongoDB driver for server-side Kotlin applications using coroutines. Download it using Maven or Gradle, or set up a runnable project by following our Quick Start guide.
If your Kotlin application requires synchronous processing, use the Sync Driver which uses synchronous operations to make blocking calls to MongoDB.
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.
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.
What's New
For a list of new features and changes in each version, see the What's New 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.