fun withWriteConcern(writeConcern: WriteConcern): CoroutineDatabase
(source)
Create a new MongoDatabase instance with a different write concern.
writeConcern
- the new com.mongodb.WriteConcern for the collection
Return
a new MongoDatabase instance with the different writeConcern