Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for comparison chains #62

Open
marijnvanwezel opened this issue Jul 5, 2022 · 0 comments
Open

Add support for comparison chains #62

marijnvanwezel opened this issue Jul 5, 2022 · 0 comments
Assignees
Labels
subject/missing-syntax Issues related to missing support for Cypher syntax type/enhancement New feature or request

Comments

@marijnvanwezel
Copy link
Collaborator

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.

@marijnvanwezel marijnvanwezel added the type/enhancement New feature or request label Jul 5, 2022
@marijnvanwezel marijnvanwezel self-assigned this Jul 5, 2022
@marijnvanwezel marijnvanwezel added the subject/missing-syntax Issues related to missing support for Cypher syntax label Nov 18, 2022
@marijnvanwezel marijnvanwezel added this to the php-cypher-dsl 6.0 milestone Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subject/missing-syntax Issues related to missing support for Cypher syntax type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant