kmongo / org.litote.kmongo / pullByFilter

pullByFilter

fun pullByFilter(property: KProperty<*>, filter: Bson): Bson (source)

Creates an update that removes all instances of the given value from the array value of the property.

Parameters

property - the property

filter - the value

Return
the update

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

fun pullByFilter(filter: Bson): Bson (source)

Creates an update that removes from an array all elements that match the given filter.

Parameters

filter - the query filter

Return
the update

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