Skip to content

Add support for comparison chains #62

@marijnvanwezel

Description

@marijnvanwezel

Currently, all comparison operators only implement BooleanType. This means that the following is not allowed:

$a->gt($b)->gt($c)

That is because $a->gt($b) returns a BooleanType, which does not implement the gt method. We would like to support this, since it is supported in Cypher. That is, the following two expressions are equivalent:

a > b > c and a > b AND b > c

This extends to all comparison operators and is not limited to three terms.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions