kmongo / org.litote.kmongo.coroutine / CoroutineCollection / withCodecRegistry

withCodecRegistry

fun withCodecRegistry(codecRegistry: CodecRegistry): CoroutineCollection<T> (source)

Create a new MongoCollection instance with a different codec registry.

Parameters

codecRegistry - the new org.bson.codecs.configuration.CodecRegistry for the collection

Return
a new MongoCollection instance with the different codec registry