Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-19-2019 08:25 AM
I want to trigger the AWS lambda when one of node properties in neo4j database changes. Do you have an idea how to approach this ?
Solved! Go to Solution.
07-01-2019 08:12 AM
You can use APOC triggers to do this:
https://neo4j-contrib.github.io/neo4j-apoc-procedures/#triggers
Essentially when something gets created, you get to call an extra piece of cypher. To do the AWS lambda call, the extra piece of cypher you might call would be something like apoc.load.json....which is really for loading JSON into the database but also has the side effect of loading any URL you specify.
https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_geocoding_example
06-19-2019 11:47 PM
afaik, it is not possible directly. However you could consider integrating a Kakfa topic and post the dabtabse changes there. Then have another process listen of that topic and trigger the AWS lambda
07-01-2019 08:12 AM
You can use APOC triggers to do this:
https://neo4j-contrib.github.io/neo4j-apoc-procedures/#triggers
Essentially when something gets created, you get to call an extra piece of cypher. To do the AWS lambda call, the extra piece of cypher you might call would be something like apoc.load.json....which is really for loading JSON into the database but also has the side effect of loading any URL you specify.
https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_geocoding_example
All the sessions of the conference are now available online