withReadConcern

fun withReadConcern(newReadConcern: ReadConcern): MongoDatabase

Create a new MongoDatabase instance with a different read concern.

Return

a new MongoDatabase instance with the different ReadConcern

Parameters

newReadConcern

the new ReadConcern for the database

See also