Factory

object Factory

A factory for MongoClient instances.

See also

Functions

Link copied to clipboard
fun create(connectionString: String): MongoClient

Create a new client with the given connection string as if by a call to create.

fun create(connectionString: ConnectionString = ConnectionString("mongodb://localhost"), mongoDriverInformation: MongoDriverInformation? = null): MongoClient
fun create(settings: MongoClientSettings, mongoDriverInformation: MongoDriverInformation? = null): MongoClient

Create a new client with the given connection string.