Evaluation Operators

Operator

Description

Example

$regex

Selects documents where the string property matches the passed in regular expression.

{“name.first”: {“$regex”: “/^james/i”}}