BlueWaveTechnologies / BlueWave

Web application used to create charts and dashboards using a graph database
MIT License
5 stars 3 forks source link

Graph - Event Listener #41

Closed pborissow closed 3 years ago

pborissow commented 3 years ago

I would like to know when nodes are added, modified, or deleted in the graph. Some of these events need to make thier way all the way to the web client.

After briefly researching the topic, it looks like we might need to create an extension and deploy it in the Neo4J plugins directory. Here are a couple links that briefly describe this approach:

https://tapan-sharma.medium.com/creating-custom-transaction-event-listener-in-neo4j-4-x-269cfe339437 https://github.com/ikwattro/neo4j-transaction-event-listener-extension

pborissow commented 3 years ago

Neo4J plugin project for BlueWave is here: https://github.com/CentrifugeTech/BlueWave_TX_Plugin

pborissow commented 3 years ago

Need to create a REST endpoint for the plugin and refresh cache whenever new nodes are created, updated, or deleted

pborissow commented 3 years ago

REST endpoint has been implemented in the saveUpdate() method in the GraphService. Revision fb1335f