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

MANDATORY MATCH #538

Open
jacobfriedman opened this issue Jul 22, 2022 · 3 comments
Open

MANDATORY MATCH #538

jacobfriedman opened this issue Jul 22, 2022 · 3 comments

Comments

@jacobfriedman
Copy link

jacobfriedman commented Jul 22, 2022

Taking this from examples:

MANDATORY MATCH (u:User {id: $user})
MANDATORY MATCH (c:City {name: $city})
MANDATORY MATCH (old:Product {id: $product})<-[:BOUGHT]-(u)
MATCH (store)-[:IN]->(c),
   (store)-[:SELLS]->(new:Product),
   (new)-[:MADE_BY]->(brand)<-[:MADE_BY]-(old)
WHERE new.availability > 0 AND new.category = old.category
RETURN store, count(DISTINCT new) AS offers
ORDER BY offers

See here

I can't find any rules in the EBNF for MANDATORY MATCH, even though MANDATORY is a reserved word. Please advise...

@petraselmer
Copy link

Hi Jacob

Thank you for raising this issue.

Although MANDATORY MATCH was accepted into Cypher, it is not at this current time included in the TCK and grammar.

I have added a note to this effect at the top of the article -- apologies for the confusion.

@jacobfriedman
Copy link
Author

jacobfriedman commented Aug 2, 2022 via email

@petraselmer
Copy link

Hi Jacob, not to our knowledge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants