eq

@JvmName(name = "eqExt")
infix fun <T> KProperty<T?>.eq(value: T?): Bson

Creates a filter that matches all documents where the value of the property equals the specified value. Note that this doesn't actually generate an $eq operator, as the query language doesn't require it.

Return

the filter

Parameters

value

the value, which may be null

the value type

fun <T> eq(property: KProperty<T?>, value: T?): Bson

Creates a filter that matches all documents where the value of the property equals the specified value. Note that this doesn't actually generate an $eq operator, as the query language doesn't require it.

Return

the filter

Parameters

property

the data class property

value

the value, which may be null

the value type