length.php
Table of Contents
Functions
- length() : string
- Return the number of attribute keys of a document.
Functions
length()
Return the number of attribute keys of a document.
length(string $document) : string
Wraps the ArangoDB AQL function LENGTH(document) (also aliased as COUNT()).
Example AQL usage:
LENGTH({a: 1, b: 2}) // returns 2
Parameters
- $document : string
-
The document variable or expression.
Tags
Return values
string —The formatted AQL expression.