How to execute Cypher in a file?

前端 未结 6 1196
情深已故
情深已故 2021-01-04 01:39

I am working on windows. I have created a text file of Cypher query using notepad. How can I run the query in the file using Neo4jShell or Neo4j web interface console.

6条回答
  •  暖寄归人
    2021-01-04 02:08

    $ neo4j-shell -file query.cql
    

    or using cypher-shell

    $ cat query.cql | cypher-shell
    

提交回复
热议问题