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.

How to configure Neo4j Embedded to invoke APOC procedures

OmShanti
Node Clone

Hello Friends,

I would like to invoke APOC procedures from my Neo4j Embedded database.

I know there are decent references available to install APOC plugin for Neo4j Server(REST) database but i want to know the steps as to how we can use APOC from within Neo4j Embedded database.

As of now, if i try to run any APOC procedures from within Neo4j Embedded i get below kind of error:
"There is no procedure with the name 'apoc.help' registered for this database instance"

Please share any pointers. Thanks.

1 REPLY 1

You need to use the following snippet for all the APOC classes you want to use:

Procedures proceduresService = ((GraphDatabaseAPI) db).getDependencyResolver().resolveDependency(Procedures.class, FIRST);
proceduresService.registerProcedure(MyClass.class,true);
proceduresService.registerFunction(MyClass.class,true);
proceduresService.registerAggregationFunction(MyClass.class,true);