标签: python neo4j cypher
给定一个包含Neo4j cypher查询的字符串,如何在python中快速确定 ,它是db read或db write。
目前我已经想到了两种看待它的方法 -
方法1在这里失败 -
MATCH (n:Person {id:1, create:3}) return n
方法2对于看似很小的任务看起来太深了。
还有其他/更好的想法吗?
答案 0 :(得分:2)
您可以使用EXPLAIN选项并检查执行计划的encoded string:
EXPLAIN
encoded string
operatorType
找到并检查写作,更新和其他类似的可能值
EXPLAIN MERGE (n:Person)