Quick start
Choose between suspension and blocking
Add the dependency
KtMongo is currently not published to MavenCentral. To import it into your projects, use a Gradle composite build.
Connect to a database
First, instantiate a client and request a specific database:
To configure more options, see the official documentation.
Access a collection
First, create a class that represents the documents stored in the collection:
Now, instantiate the collection:
Perform a simple operation
Now that we have access to the collection, we can perform operations on it: