kmongo / org.litote.kmongo / popLast

popLast

fun <T> popLast(property: KProperty<T>): Bson (source)

Creates an update that pops the last element of an array that is the value of the property.

Parameters

property - the property

Return
the update

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