Database Manual / Reference / Query Language / Query Predicates

Data Type Query Predicate Operators

Data type query predicate operators return data based on field existence or data types.

OperatorDescription

$exists

Matches documents that have the specified field.

$type

Matches documents if a field is of the specified type.