Skip to main content

LENGTH (Collections)

Deprecated version

This document refers to a deprecated version of the RQL programming language.

Please go here for documentation related to the latest supported version.

Count the number of elements in the collection.

Syntax
LENGTH(<collection>)
Example
LENGTH([1, 2]) // 2
LENGTH([null, 1, 2]) // 3