BsonArray
Implementation of opensavvy.ktmongo.bson.BsonArray 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.BsonArray.
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: BsonArray = …
for (element in bson) {
println("Element: $element")
}Content copied to clipboard
Implementation of a KtMongo opensavvy.ktmongo.bson.BsonArray that wraps a org.bson.BsonArray.
To create an instance of this class, see BsonFactory.readArray.
Types
Link copied to clipboard
Serializer for the official opensavvy.ktmongo.bson.official.BsonArray implementation.