我正在处理Neo4j APOC触发器,我怀疑,我可以创建一个触发器,当图形或子图将被更改时,它将向外部端点发送HTTP请求吗?
CALL apoc.trigger.add('httpTrigger',"UNWIND {createdNodes} AS n
OPTIONAL MATCH path = (n)--()
WITH collect(n) + collect(path) as paths
CALL apoc.es.postRaw("http://localhost:8080","/rsd",paths) yield value return count(*)
", {phase:'before'})
必须是类似的东西,但要使用Elastic搜索插件,而要使用HTTP库?
谢谢!