parseCollection.php
Table of Contents
Functions
- parseCollection() : string
- Return the collection name part of a document identifier.
Functions
parseCollection()
Return the collection name part of a document identifier.
parseCollection(string $documentIdentifier) : string
Wraps the ArangoDB AQL function PARSE_COLLECTION(documentIdentifier).
Example AQL usage:
PARSE_COLLECTION("products/123") // returns "products"
PARSE_COLLECTION(doc._id) // collection of the current document
Parameters
- $documentIdentifier : string
-
A document handle /
_idexpression or string literal.
Tags
Return values
string —The formatted AQL expression.