kmongo / org.litote.kmongo / kotlin.reflect.KProperty / mod

mod

fun <T> KProperty<T>.mod(divisor: Long, remainder: Long): Bson (source)

Creates a filter that matches all documents where the value of a property divided by a divisor has the specified remainder (i.e. perform a modulo operation to select documents).

Parameters

divisor - the modulus

remainder - the remainder

Return
the filter

Mongodb
.driver.manual reference/operator/query/mod $mod