Oihana PHP Arango

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
example
use function oihana\arango\db\functions\documents\length;

$expr = length('doc');
// Produces: 'LENGTH(doc)'
see
https://docs.arangodb.com/stable/aql/functions/document-object/#length
count()
since
1.1.0
author

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results