知识库

cypher-shell 的收藏夹?

Neo4j Browser 始终具有记录 收藏夹 的功能,即对您将来可能希望运行的已保存 Cypher 查询进行书签标记。bin\cypher-shell 具有类似的功能,一旦连接,您可以运行

Connected to Neo4j using Bolt protocol version 4.2 at neo4j://localhost:7687 as user neo4j.
Type :help for a list of available commands or :exit to exit the shell.
Note that Cypher queries must end with a semicolon.

neo4j> :source favorite1.cyp

这将使 cypher-shell 运行 `favorite1.cyp` 中定义的所有 Cypher 语句。请注意,您可以完全限定文件名,因此

neo4j> :source /home/neo4j/favorites/fav1.cyp

这将使 cypher-shell 执行在 `/home/neo4j/favorites` 中找到的名为 `fav1.cyp` 的文件中的所有 Cypher 语句

© . All rights reserved.