Skip to content

Kotlin BSON • Based on the official MongoDB implementationopensavvy.ktmongo.bson.officialJvmBsonFactorycodecRegistry

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.