Oihana PHP Arango

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
see
https://docs.arangodb.com/stable/aql/high-level-operations/with
since
1.0.0
author

Marc Alcaraz

Return values
string

The generated AQL WITH clause, or an empty string if none provided.

On this page

Search results