meta

@JvmName(name = "metaExt")
infix fun <T> KProperty<T>.meta(metaFieldName: String): Bson

Creates a $meta projection for the given property

Return

the projection @mongodb.driver.manual reference/operator/aggregation/meta/

Parameters

metaFieldName

the meta field name

See also

#metaSearchHighlights(String)


fun <T> meta(property: KProperty<T>, metaFieldName: String): Bson

Creates a $meta projection for the given property

Return

the projection @mongodb.driver.manual reference/operator/aggregation/meta/

Parameters

property

the data class property

metaFieldName

the meta field name

See also

#metaSearchHighlights(String)