Skip to content

Kotlin BSON • Multiplatform abstraction for different BSON implementationsopensavvy.ktmongo.bsonBsonValueWriteable

BsonValueWriteable

interface BsonValueWriteable

An object that can be represented as a BSON value (value of a field, item in an array, an array itself).

Functions

toString

abstract override fun toString(): String

JSON representation of this object.

writeTo

@LowLevelApi
abstract fun writeTo(writer: BsonValueWriter)

Writes this object to the provided writer.