neo4j-contrib / rabbithole

Interactive, embeddable Neo4j-Console
http://rabbithole.heroku.com
79 stars 41 forks source link

"Clear DB" button in http://console.neo4j.org generates invalid cypher for optional match #64

Closed systay closed 10 years ago

systay commented 10 years ago

When starting a new console session the default cypher parser expects the new 2.0 RC1 syntax, but the "Clear DB" button still generates the old 2.0 milestone cypher for optional paths.

Query: 
START n=node(*) 
MATCH n-[r?]-m 
WITH n, r 
DELETE n, r 
Error: Question mark is no longer used for optional patterns - use OPTIONAL MATCH instead (line 1, column 25) 
"START n=node(*) MATCH n-[r?]-m WITH n, r DELETE n, r"