Oihana PHP Arango

count.php

Table of Contents

Functions

count()  : string
Return the number of attribute keys of a document (an alias of {@see length()} / `LENGTH()`).

Functions

count()

Return the number of attribute keys of a document (an alias of {@see length()} / `LENGTH()`).

count(string $document) : string

Wraps the ArangoDB AQL function COUNT(document).

Example AQL usage:

COUNT({a: 1, b: 2})   // returns 2
Parameters
$document : string

The document variable or expression.

Tags
example
use function oihana\arango\db\functions\documents\count;

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

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results