Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
06-29-2019 01:53 AM
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.
06-30-2019 10:58 AM
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);
All the sessions of the conference are now available online