cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How to set neo4j database trigger for AWS lambda?

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 ?

1 ACCEPTED SOLUTION

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

View solution in original post

2 REPLIES 2

aldrinm
Node Link

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

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