kmongo / org.litote.kmongo / match

match

fun match(filter: Bson): Bson (source)

Creates a $match pipeline stage for the specified filter

Parameters

filter - the filter to match

Return
the $match pipeline stage

See Also

Filters

Mongodb
.driver.manual reference/operator/aggregation/match/ $match

fun match(vararg filters: Bson): Bson (source)

Creates a $match pipeline stage with $and on each filter.

Parameters

getProjection - the getProjection

Return
the $project pipeline stage