Skip to main content

$toUpper

The $toUpper operator converts a string to uppercase.

Input

  • A single string value

Output

  • The input string with all characters converted to uppercase

Examples

Basic Conversion

{
  "$toUpper": [
    "Hello, World!"
  ]
}
Result: "HELLO, WORLD!"

Field Value

{
  "$toUpper": [
    {
      "$input": "name"
    }
  ]
}
Result: The name field converted to uppercase