A newer version of this documentation is available.

View Latest

Object functions

OBJECT_LENGTH(expression)

Returns number of name-value pairs in the object.

OBJECT_NAMES(expression)

Returns array containing the attribute names of the object, in N1QL collation order.

OBJECT_PAIRS(expression)

Returns array containing the attribute name and value pairs of the object, in N1QL collation order of the names.

OBJECT_VALUES(expression)

Returns array containing the attribute values of the object, in N1QL collation order of the corresponding names.