Back to top

ReQL command: keys

Command syntax

singleSelection.keys() → array

object.keys() → array


Return an array containing all of an object’s keys. Note that the keys will be sorted as described in ReQL data types (for strings, lexicographically).

Example: Get all the keys from a table row.

// row: { "id": 1, "mail": "", "name": "fred" }


// Result:
[ "id", "mail", "name" ]

Get more help

Couldn't find what you were looking for?