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的普遍问题。它似乎与何时程序有关。 debug.log中也没什么有趣的。
在neo4j.conf中我只添加了dbms.security.procedures.unrestricted=apoc.*
答案 0 :(得分:0)
见文档:
apoc.when
屈服值 - 基于条件,执行带有给定参数的只读 ifQuery或elseQuery
改为使用
apoc.do.when
屈服值 - 基于条件,执行带有给定参数的编写 ifQuery或elseQuery