Documentation

strings.title() function

The strings.title() function converts a string to title case.

Output data type: String

import "strings"

strings.title(v: "a flux of foxes")

// returns "A Flux Of Foxes"

Parameters

v

The string value to convert.

Data type: String

Examples

Convert all values of a column to title case
import "strings"

data
  |> map(fn: (r) => ({ r with pageTitle: strings.title(v: r.pageTitle) }))

New! Cloud or OSS?

InfluxDB OSS 2.0 now generally available!

InfluxDB OSS 2.0 is now generally available and ready for production use. See the InfluxDB OSS 2.0 release notes.

For information about upgrading to InfluxDB OSS 2.0, see: