facet

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

Creates a facet pipeline stage

Return

the new pipeline stage

Parameters

facets

the facets to use