strings.toLower() function
The strings.toLower()
function converts a string to lowercase.
Output data type: String
import "strings"
strings.toLower(v: "KOALA")
// returns "koala"
Parameters
v
The string value to convert.
Data type: String
Examples
Convert all values of a column to lower case
import "strings"
data
|> map(fn: (r) => ({
r with exclamation: strings.toLower(v: r.exclamation)
})
)
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB and this documentation. To find support, the following resources are available:
InfluxDB Cloud and InfluxDB Enterprise customers can contact InfluxData Support.