Homogenous¶
class Homogenous<T>(val schema: Schema<T>, factory: BsonFactory) : Schema.ArrayItems.ArrayItemsConfiguration<T>
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¶
Functions¶
toString¶
JSON representation of this object as a BSON document.
writeTo¶
@LowLevelApi
open override fun writeTo(writer: BsonFieldWriter)
Writes this object to the provided writer.