opencypher / openCypher

Specification of the Cypher property graph query language
http://www.opencypher.org
Apache License 2.0
853 stars 149 forks source link

MANDATORY MATCH #538

Open jacobfriedman opened 2 years ago

jacobfriedman commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

Thanks Petra — On that note; is there anything else that could be missing?

On Tue., Aug. 2, 2022, 6:55 a.m. Petra Selmer, @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/opencypher/openCypher/issues/538#issuecomment-1202329586, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFKHXSDR2WDKVVGLFGDTQLVXD5BLANCNFSM54MIHAOQ . You are receiving this because you authored the thread.Message ID: @.***>

petraselmer commented 2 years ago

Hi Jacob, not to our knowledge.