Oihana PHP Arango

length.php

Table of Contents

Functions

length()  : string
Determine the amount of documents in a collection.

Functions

length()

Determine the amount of documents in a collection.

length(mixed $collection) : string

This helper wraps the ArangoDB AQL function LENGTH().

Example AQL output:

LENGTH(coll)
Parameters
$collection : mixed
Tags
example
use function oihana\arango\db\functions\length;

$expr = length('coll');
// Produces: 'LENGTH(coll)'

LENGTH() can also determine the number of elements in an array, the number of attribute keys of an object / document and the character length of a string.

see
https://docs.arangodb.com/stable/aql/functions/miscellaneous/#length
since
1.0.0

author Marc Alcaraz

Return values
string

The formatted AQL expression (e.g. 'LENGTH(coll)').

On this page

Search results