computedSearchMeta

@JvmName(name = "computedSearchMetaExt")
fun <T> KProperty<T>.computedSearchMeta(): Bson
fun <T> computedSearchMeta(property: KProperty<T>): Bson

Creates a projection of a property whose value is equal to the {@code $$SEARCH_META} variable. for use with {@link Aggregates#search(SearchOperator, SearchOptions)} / {@link Aggregates#search(SearchCollector, SearchOptions)}. Calling this method is equivalent to calling {@link #computed(String, Object)} with {@code "$$SEARCH_META"} as the second argument.

Return

the projection

Parameters

property

the data class property

See also

#computed(String)

Aggregates

#project(Bson)