- Reference >
- Operators >
- Aggregation Pipeline Operators >
- $toLower (aggregation)
$toLower (aggregation)¶
On this page
Definition¶
-
$toLower
¶ Converts a string to lowercase, returning the result.
$toLower
has the following syntax:The argument can be any expression as long as it resolves to a string. For more information on expressions, see Expressions.
If the argument resolves to null,
$toLower
returns an empty string""
.