experimental.objectKeys() function

The experimental.objectKeys() function is subject to change at any time. By using this function, you accept the risks of experimental functions.

The experimental.objectKeys() function returns an array of keys in a specified record.

Function type: Transformation

import "experimental"

  o: {key1: "value1", key2: "value2"}

// Returns [key1, key2]



The record to return keys from.

Data type: Record


Return all keys in a record

import "experimental"

user = {
  firstName: "John",
  lastName: "Doe",
  age: 42

experimental.objectKeys(o: user)

// Returns [firstName, lastName, age]

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: