Oihana PHP Arango

ArrayComparator uses ConstantsTrait

In AQL, most comparison operators also exist as an array variant.

Tags
see
https://docs.arangodb.com/stable/aql/operators/

Table of Contents

Constants

ALL  : string = 'ALL'
The ALL operator.
ANY  : string = 'ANY'
The ANY operator.
NONE  : string = 'NONE'
The NONE operator.

Constants

ALL

The ALL operator.

public string ALL = 'ALL'
Tags
example
[ 1, 2, 3 ]  ALL IN  [ 2, 3, 4 ]  // false
[ 1, 2, 3 ]  ALL IN  [ 1, 2, 3 ]  // true
[ 1, 2, 3 ]  ALL >  2             // false
[ 1, 2, 3 ]  ALL >  0             // true

ANY

The ANY operator.

public string ANY = 'ANY'
Tags
example
[ 1, 2, 3 ] ANY ==  2 // true
[ 1, 2, 3 ] ANY ==  4 // false
[ 1, 2, 3 ] ANY >  0  // true
[ 1, 2, 3 ] ANY <=  1 // true

NONE

The NONE operator.

public string NONE = 'NONE'
Tags
example
[ 1, 2, 3 ] NONE <  99 // false
[ 1, 2, 3 ] NONE >  10 // true
On this page

Search results