MATCH (n) WHERE exists {
(n)-->()
}
RETURN n
In this query contains the following expression: "exists {(n)-->()}" Or at least according to the grammar WHERE should be followed by an expression.
But I cannot see how "exists {(n)-->()}" is a valid expression according to the grammar. "EXIST" is a valid function name according to
https://s3.amazonaws.com/artifacts.opencypher.org/railroad/FunctionInvocation.html. But the function name is to be followed by '(', not '{'.
Can someone point me to the railroad diagram that defines the part of the expression grammar that addresses this expression?
Thanks,