fun withCodecRegistry(codecRegistry: CodecRegistry): CoroutineCollection<T>
(source)
Create a new MongoCollection instance with a different codec registry.
codecRegistry
- the new org.bson.codecs.configuration.CodecRegistry for the collection
Return
a new MongoCollection instance with the different codec registry