from

infix fun <T> KProperty<T>.from(expression: T): Bson

Creates a projection of a property whose value is computed from the given expression.

Return

the projection

Parameters

expression

the expression

the expression type

See also

Aggregates

#project(Bson)


infix fun MongoOperator.from(expression: Any): Bson

Builds Bson for the MongoOperator and the specified expression.


infix fun String.from(expression: Any): Bson

Builds Bson from this String format and the specified expression.