My answer here does not answer the question directly (Stefan's answer is suitable for this). With that said, if any of you are considering writing server-side plugins (to get the Stored Proc behavior) before your project is actually used in production (which at the time of this writing is the vast majority of the Neo4j user base), I highly recommend no .
Server plugins add architectural complexity to your project. JVM developers will be required to support them. Deploying or updating them can be complicated, and the associated source control methodologies are not intuitive. Neo4j does not require circuit migration, which makes it easier to work as a developer. Adding server plug-ins will no longer give you this benefit, and since this is not the main use case of Neo4j, you will get a little help from the development community, and improvements and bug fixes related to this feature will receive lower priority from the Neo4j Team.
And all this would be possible for a slight increase in productivity, or none at all.
“Stored procedures” (or the use of server plugins per se) are an important feature in the context of performance tuning, but if your team is still two guys in the garage, don’t even think about taking this path.
source share