fun <T> pushEach(property: KProperty<Iterable<T>?>, values: List<T?>, options: PushOptions = PushOptions()): Bson
(source)
Creates an update that adds each of the given values to the array value of the property, applying the given options for positioning the pushed values, and then slicing and/or sorting the array.
options
- the non-null push options
Parameters
Return
the update
Mongodb
.driver.manual reference/operator/update/push/ $push