MongoDatabase

interface MongoDatabase

A handle to a remote Atlas App Service database that provides access to its MongoCollections.

Properties

Link copied to clipboard
abstract val name: String

Name of the remote database.

Functions

Link copied to clipboard
abstract fun collection(collectionName: String): MongoCollection<BsonDocument>

Get a MongoCollection that exposed methods to retrieve and update data from the database's collection.

@ExperimentalKBsonSerializerApi
abstract fun <T> collection(collectionName: String, eJson: EJson? = null): MongoCollection<T>

Get a MongoCollection that exposed methods to retrieve and update data from the database's collection with specific typed serialization.