aqlWith.php
Table of Contents
Functions
- aqlWith() : string
- Generates an AQL `WITH` clause for one or more collections.
Functions
aqlWith()
Generates an AQL `WITH` clause for one or more collections.
aqlWith(string ...$collections) : string
The WITH clause restricts the query to only access the specified collections.
Syntax:
WITH collection1, collection2, ...
Example usage:
echo aqlWith('users'); // "WITH users"
echo aqlWith('users', 'orders'); // "WITH users, orders"
echo aqlWith(); // ""
Parameters
- $collections : string
-
List of collection names to include in the query.
Tags
Return values
string —The generated AQL WITH clause, or an empty string if none provided.