withReadConcern

fun withReadConcern(newReadConcern: ReadConcern): MongoCollection<T>

Create a new collection instance with a different read concern.

Return

a new MongoCollection instance with the different ReadConcern

Parameters

newReadConcern

the new ReadConcern for the collection

See also