How to setup autoexec of Cypher query on each Neo4j service restart?


Setup: Neo4j Enterprise 4.2.9 on Oracle Linux server, full admin access

I have some crucially important graphs made by gds.graph.create.cypher procedure that has to be present in database all the time. But as they getting dropped after each service restart, I have to re-create these graphs on Neo4j boot.

What is the best way to do that automatically? Preferably, using only Neo4j configurations without external scripts.

Hi @NickNal !

I have found a way to do so. How confident do you feel about extending the APOC library?


Hi, @Bennu . Sorry for the late response.
I can give it a try on test server.