- Reference >
- Operators >
- Aggregation Pipeline Operators >
- Comparison Aggregation Operators >
- $gte (aggregation)
$gte (aggregation)¶
On this page
Definition¶
-
$gte¶ Compares two values and returns:
truewhen the first value is greater than or equivalent to the second value.falsewhen the first value is less than the second value.
The
$gtecompares both value and type, using the specified BSON comparison order for values of different types.$gtehas the following syntax:For more information on expressions, see Expressions.