Write operations are not allowed for user 'neo4j' with FULL restricted to READ

apoc

(Akkuba53) #1

I am trying this query

match (t:Trip),(s:User)
CALL apoc.when(exists((t)--(s)), 'create (h:hhh) return h', 'create (h:hhh) return h'
) yield value return value

but getting this error

Neo.ClientError.Security.Forbidden: Write operations are not allowed for user 'neo4j' with FULL restricted to READ.

I am using neo4j community version Version: 3.4.10 and apoc latest


(Stefan Armbruster) #2

for write statements you need to use call apoc.do.when() instead of call apoc.when()


(Akkuba53) #3

Thanx man :sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses::sunglasses: