Skip to content

UniqueItems

Whether the array must contain unique items.

If the property does not contain an array, this constraint is ignored.

Constructors

UniqueItems

constructor(unique: Boolean, factory: BsonFactory)
constructor(factory: BsonFactory)

Properties

name

val name: String

The name of this constraint.

unique

Functions

toString

override fun toString(): String

JSON representation of this constraint object.

writeTo

override fun writeTo(writer: BsonFieldWriter)

Writes this object to the provided writer.