expr

fun <T> expr(expression: T): Bson

Creates a filter that matches all documents that validate against the given JSON schema document.

Return

the filter

Parameters

expression

the aggregation expression

the expression type