Documentation

strings.toLower() function

strings.toLower() converts a string to lowercase.

Function type signature
(v: string) => string
For more information, see Function type signatures.

Parameters

v

(Required) String value to convert.

Examples

Convert all values of a column to lower case

import "sampledata"
import "strings"

sampledata.string()
    |> map(fn: (r) => ({r with _value: strings.toLower(v: r._value)}))

View example input and ouput


Was this page helpful?

Thank you for your feedback!


Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.