Oihana PHP Arango

notIn.php

Table of Contents

Functions

notIn()  : string
Returns an AQL expression that checks if the left operand is not contained in the right operand array.

Functions

notIn()

Returns an AQL expression that checks if the left operand is not contained in the right operand array.

notIn(mixed $leftOperand, mixed $rightOperand) : string

Equivalent to the ArangoDB NOT IN comparison operator.

Example:

  • 42 NOT IN [ 2, 3, 1.5 ] returns true
  • 1.5 NOT IN [ 2, 3, 1.5 ] returns false
Parameters
$leftOperand : mixed

The value or expression to look for.

$rightOperand : mixed

The array expression to search in.

Tags
example
echo notIn('42', '[ 2, 3, 1.5 ]');
// 42 NOT IN [ 2, 3, 1.5 ]

echo notIn('user.role', "['admin','user']");
// user.role NOT IN ['admin','user']
see
https://docs.arangodb.com/stable/aql/operators/#array-comparison-operators
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL predicate string.

On this page

Search results