Compares two values and returns:
truewhen the first value is greater than the second value.
falsewhen the first value is less than or equivalent to the second value.
$gthas the following syntax:
For more information on expressions, see Expressions.
inventory collection with the following documents:
The following operation uses the
$gt operator to determine if
qty is greater than
The operation returns the following results: