BsonDocument
Implementation of opensavvy.ktmongo.bson.BsonDocument based on the official MongoDB drivers.
To create instances of this class, see BsonFactory.
This page describes the BSON implementation based on the official MongoDB drivers. To learn more about the general BSON operations, see opensavvy.ktmongo.bson.BsonDocument.
Navigating BSON types
This interface is part of the BSON trinity:
BsonDocument represents an entire BSON document.
BsonArray represents an array of BSON values.
BsonValue represents a single value in isolation.
Usage
val bson: BsonDocument = …
for ((name, field) in bson) {
println("Field: $name • ${field.type}")
}Implementation of a KtMongo opensavvy.ktmongo.bson.BsonDocument that wraps a org.bson.BsonDocument.
To create an instance of this class, see BsonFactory.readDocument.
Types
Serializer for the official opensavvy.ktmongo.bson.official.BsonDocument implementation.