- Reference >
- Operators >
- Aggregation Pipeline Operators >
- $toUpper (aggregation)
$toUpper (aggregation)¶
On this page
Definition¶
-
$toUpper
¶ Converts a string to uppercase, returning the result.
$toUpper
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,
$toUpper
returns an empty string""
.