Skip to content

Homogenous

Pass this value to ArrayItems to ensure that all items in an array conform to schema.

Constructors

Homogenous

constructor(schema: Schema<T>, factory: BsonFactory)

Properties

schema

val schema: Schema<T>

Functions

toString

open override fun toString(): String

JSON representation of this object as a BSON document.

writeTo

@LowLevelApi
open override fun writeTo(writer: BsonFieldWriter)

Writes this object to the provided writer.