Can I evaluate cypher code from a string in Neo4j? I think about something like eval
function in JavaScript.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You will be helped by the apoc
library with a rich set of tools to execute the cypher
from the string:
call db.labels() yield label
call apoc.cypher.run("match (:`"+label+"`) return count(*) as count", null) yield value
return label, value.count as count