BsonArray
Pure Kotlin implementation of opensavvy.ktmongo.bson.BsonArray.
To create instances of this class, see BsonFactory.
This page describes the BSON multiplatform implementation. To learn more about the general BSON operations, see opensavvy.ktmongo.bson.BsonArray.
Navigating BSON types
This class 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
Thread-safety
This class is not thread-safe. Although it is not possible to mutate its state, this class uses internal mutation to lazily decode the BSON stream.
Types
Link copied to clipboard
Serializer for the multiplatform opensavvy.ktmongo.bson.multiplatform.BsonArray implementation.