UniqueItems¶
class UniqueItems(val unique: Boolean, factory: BsonFactory) : Schema.SimpleConstraint<Collection<*>>
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¶
unique¶
Functions¶
toString¶
writeTo¶
override fun writeTo(writer: BsonFieldWriter)
Writes this object to the provided writer.