-
Notifications
You must be signed in to change notification settings - Fork 80
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
If a where
is specified between two match
es (including optional_match
), there should be a break
#255
Comments
This is actually a bug. According to the official documentation a Where clause must be grouped with the specific match or optional match it relates to, before any other match or optional match. Currently, Something like
produces cypher
but this is wrong, and produces wrong results. It should produce cypher:
|
Yeah, this is definitely a problem. @dmlond What would you think about a mode in which making Originally I was basing the query syntax off of |
Yeah, its not like AR. You might organise each match/optional match onto a list, and push each where onto a list of where clauses attached to the last match in the list at the time the where is called. Then pull off each match with its where clauses from the beginning of the match list. |
It is important that
where
clauses go with theirmatch
clauses and the Ruby API should reflect this.I'm wondering if maybe we should re-think the way that clauses group together automatically. Maybe it should only happen if the same clause is used a number of times in a row? I think it made sense for
ActiveRecord
/arel
, but maybe not for Cypher.The text was updated successfully, but these errors were encountered: