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

type

infix fun <T> KProperty<T>.type(type: BsonType): Bson (source)

Creates a filter that matches all documents where the value of the property is of the specified BSON type.

Parameters

type - the BSON type

Return
the filter

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