pushEach

fun <T> pushEach(property: KProperty<Iterable<T>?>, values: List<T?>, options: PushOptions = PushOptions()): Bson

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.

Return

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

Parameters

property

the property

values

the values

options

the non-null push options

the value type