where

fun where(javaScriptExpression: String): Bson

Creates a filter that matches all documents for which the given expression is true.

Return

the filter

Parameters

javaScriptExpression

the JavaScript expression