withWriteConcern

fun withWriteConcern(newWriteConcern: WriteConcern): MongoDatabase

Create a new MongoDatabase instance with a different write concern.

Return

a new MongoDatabase instance with the different writeConcern

Parameters

newWriteConcern

the new WriteConcern for the database