kmongo / org.litote.kmongo / push

push

fun <T> push(property: KProperty<Iterable<T>?>, value: T): Bson (source)

Creates an update that adds the given value to the array value of the property.

Parameters

property - the property

value - the value

Parameters

Return
the update

Mongodb
.driver.manual reference/operator/update/push/ $push