在ubuntu上的neo4j 3.3.1上遇到apoc 3.3.0.1问题。我想使用apoc.when原因在某些条件下创建元素。
上:
CALL apoc.when(true, "CREATE (a:Test) return a", "", { }) yield value return null
我收到以下错误:
Token create operations are not allowed for user 'neo4j' with FULL restricted to READ.
但是打电话的时候
CALL apoc.create.node(['Test'], { testId: 1234 })
一切正常。
我想这不是 apoc 的普遍问题。它似乎与when程序有关。debug.log 中也没什么有趣的。
在 neo4j.conf 我只添加了dbms.security.procedures.unrestricted=apoc.*