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.
Return
the filter
Mongodb
.driver.manual reference/operator/query/type $type