fun createClient(): MongoClient
(source)
Creates a new client with the default connection string "mongodb://localhost".
Return
the client
fun createClient(settings: MongoClientSettings): MongoClient
(source)
Create a new client with the given client settings.
Return
the client
fun createClient(connectionString: String): MongoClient
(source)
Create a new client with the given connection string.
connectionString
- the connection
Return
the client
fun createClient(connectionString: ConnectionString): MongoClient
(source)
Create a new client with the given connection string.
connectionString
- the settings
Return
the client