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.

Does Neo4j have a function or plugin that works like SQL's Triggers and can use in java program?

Hi, I'm developing a Java program, I hope it can achieve synchronization between MySQL databases and Neo4j databases. When user changes the schema or matadata in MySQL databases, it can synchronously reflect on Neo4j. I have already achieve this function using SQL's Trigger.
And I want to know is there a similar function in neo4j? When I edit the gragh, change nodes properties, delete or create nodes and relationships, can I customize codes in java that helps me synchronize these changes in MySQL?
Thank you for answering.

2 REPLIES 2

Yep, there TransactionEventHandlers, see https://maxdemarzi.com/2015/03/25/triggers-in-neo4j/ for a good write up.

Thanks a lot! have a good day