connectToDB

fun connectToDB(dbName: String)(source)

Connects to a specific database. If there is no database with the input name in the mongo instance, an empty one will be created.