Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Neo4j: How Do I Add COMMENTS to a *.cql (cypher) File?

The format of the Cypher query language in script files still appears a bit ambiguous...how do i add comments to such a file?

Thank you!

like image 521
Quasaur Avatar asked Mar 17 '15 14:03

Quasaur


1 Answers

You use double slashes for cypher comments

// this is a comment

the file format is of Neo4j-shell not so much of Cypher.

Use semicolons to end statements and you can surround a number of statements with BEGIN and COMMIT for a larger transaction.

You can also have other neo4j-shell commands in that file. Like schema --await

like image 140
Michael Hunger Avatar answered Sep 19 '22 01:09

Michael Hunger