kmongo / org.litote.kmongo / facet

facet

fun facet(facets: List<Facet>): Bson (source)
fun facet(vararg facets: Facet): Bson (source)

Creates a facet pipeline stage

Parameters

facets - the facets to use

Return
the new pipeline stage

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