I am handling with Neo4j APOC triggers and i have a doubt, Can i made a trigger that when a graph or a subgraph will be change, it send a HTTP request to a extern endpoint?
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'})
Must Be something like that but instead use Elastic search pluggin use a HTTP library?
Thanks!!