mod

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

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).

Return

the filter

Parameters

divisor

the modulus

remainder

the remainder