Factory

object Factory

A factory for MongoClient instances.

Since

4.10

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"), @Nullable mongoDriverInformation: MongoDriverInformation? = null): MongoClient
fun create(settings: MongoClientSettings, @Nullable mongoDriverInformation: MongoDriverInformation? = null): MongoClient

Create a new client with the given connection string.