BsonFactory
Creates KtMongo BsonDocument and BsonArray instances by wrapping the equivalents from the official drivers.
BsonDocument and BsonArray factory that uses the official MongoDB driver's CodecRegistry machinery.
Documents and arrays created from this class follow your existing configuration of the official MongoDB driver, including any library supported by the official MongoDB driver (KotlinX.Serialization, Jackson…).
This factory also adds support for the types specific to KtMongo. If you also use the official driver directly, you will need to configure it to access the KtMongo codecs. To learn more, see BsonFactory.codecRegistry.
Properties
Functions
Writes an arbitrary Kotlin obj into a top-level BSON document.
Wraps a org.bson.BsonArray from the official MongoDB driver into its KtMongo equivalent.
Wraps a org.bson.BsonDocument from the official MongoDB driver into its KtMongo equivalent.