fun withWriteConcern(writeConcern: WriteConcern): CoroutineCollection<T>
(source)
Create a new MongoCollection instance with a different write concern.
writeConcern
- the new com.mongodb.WriteConcern for the collection
Return
a new MongoCollection instance with the different writeConcern