match

fun match(filter: Bson): Bson

Creates a $match pipeline stage for the specified filter

Return

the $match pipeline stage

Parameters

filter

the filter to match

See also

Filters

fun match(vararg filters: Bson): Bson

Creates a

$match pipeline stage with $

and on each filter.

Return

the $project pipeline stage

Parameters

getProjection

the getProjection