Divides one number by another and returns the remainder.
$modexpression has the following syntax:
The first argument is the dividend, and the second argument is the divisor; i.e. first argument is divided by the second argument.
planning collection with the following documents:
The following aggregation uses the
$mod expression to return the remainder of the
hours field divided by the
The operation returns the following results: