Oihana PHP Arango

collectionCount.php

Table of Contents

Functions

collectionCount()  : string
Determine the amount of documents in a collection. LENGTH() is preferred.

Functions

collectionCount()

Determine the amount of documents in a collection. LENGTH() is preferred.

collectionCount(mixed $collection) : string

This helper wraps the ArangoDB AQL function COLLECTION_COUNT().

Example AQL output:

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

$expr = collectionCount('coll');
// Produces: 'COLLECTION_COUNT(coll)'
see
https://docs.arangodb.com/stable/aql/functions/miscellaneous/#collection_count
since
1.0.0

author Marc Alcaraz

Return values
string

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

On this page

Search results