Kotlin BSON • Based on the official MongoDB implementation • opensavvy.ktmongo.bson.official • JvmBsonFactory • codecRegistry
codecRegistry¶
@LowLevelApi
abstract val codecRegistry: CodecRegistry
The codec registry used by this factory to create new documents.
This registry includes codecs for KtMongo-specific types. When mixing KtMongo with the official driver, it is recommended to configure the official driver using this registry to ensure types are serialized identically by both libraries.