Oihana PHP Arango

isNull.php

Table of Contents

Functions

isNull()  : string
Builds an AQL expression that checks whether a value is `null`.

Functions

isNull()

Builds an AQL expression that checks whether a value is `null`.

isNull(string $value) : string

This helper wraps the ArangoDB AQL function IS_NULL(), which returns true if the given value is null, and false otherwise.

Example AQL output:

IS_NULL(user.email)
Parameters
$value : string

The AQL field or expression to check (e.g. 'user.email').

Tags
example
use function oihana\arango\db\functions\isNull;

$expr = isNull('user.email');
// Produces: 'IS_NULL(user.email)'
see
https://docs.arangodb.com/stable/aql/functions/type-check-and-cast/#is_null
since
1.0.0

author Marc Alcaraz

Return values
string

The formatted AQL expression (e.g. 'IS_NULL(user.email)').

On this page

Search results