addEachToSet

fun <T> addEachToSet(property: KProperty<Iterable<T>?>, values: List<T>): Bson

Creates an update that adds each of the given values to the array value of the property, unless the value is already present, in which case it does nothing

Return

the update @mongodb.driver.manual reference/operator/update/addToSet/ $addToSet

Parameters

property

the property

values

the values

the value type