Pipeline Practice

MongoDB $gte

Test whether the first value is greater than or equal to the second.

Inside an aggregation expression, pass both values in an array. The result is a boolean that can drive `$cond` or another expression.

Expressions calculate a value inside a stage. They can read fields, compare values, perform arithmetic, or choose between two outcomes.

Course use: Exercise 06.

Example pipeline syntax

{ $gte: ["$total", 200] }