Update
The answer below was accurate in 2014. It is mostly accurate in 2018.
But now there is a way to implement triggers in Neo4j provided by Max DeMarzi, which is very good, and it will do its job.
Original answer below.
No, it is not.
You might be able to get something similar to what you want using the TransactionEventHandler object, which basically allows you to bind a piece of code (in java) to process the transaction.
In this context, I would be very careful with starting cypher. Depending on what kind of correspondence you want to make, you can really cut performance by doing this every time new data is created on the chart. Typically, DBMS triggers are specific for inserts or updates in a particular table. In Neo4J, the closest equivalent you may have is to create / modify a node of a certain type of label. If your application has any number of different node classes, it would be pointless to run your startup code whenever new relationships / nodes are created, because most of the time the node type will probably not be related to the trigger code.
Related reading: Are database support triggers supported? and a function request for triggers in neo4j
FrobberOfBits
source share