Oihana PHP Arango

entries.php

Table of Contents

Functions

entries()  : string
Return the attributes of a document as an array of key/value pairs.

Functions

entries()

Return the attributes of a document as an array of key/value pairs.

entries(string $document) : string

Wraps the ArangoDB AQL function ENTRIES(document).

Example AQL usage:

ENTRIES({a: 1, b: 2})   // returns [["a", 1], ["b", 2]]
Parameters
$document : string

The document variable or expression.

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

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

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results