strings.toLower() function

The strings.toLower() function converts a string to lowercase.

*Output data type: String*

  1. import "strings"
  2. strings.toLower(v: "KOALA")
  3. // returns "koala"

Parameters

v

The string value to convert.

*Data type: String*

Examples

Convert all values of a column to lower case
  1. import "strings"
  2. data
  3. |> map(fn: (r) => ({
  4. r with exclamation: strings.toLower(v: r.exclamation)
  5. })
  6. )

Related articles