0
votes

I am trying to connect mongodb data to neo4j. I tried with this code "CALL apoc.mongodb.get('mongodb://localhost:27017','test','test',{name:'testDocument'})" in Neo4j. But I get an error as There is no procedure with the name apoc.mongodb.get registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed. I had added APOC jar files in Neo4j plugins and I gone through this link http://indexoutofrange.com/Neo4jStoredProceduresWindows/

still Iam unable to connect. can someone please explain what shall i do to get this started. Thanks

1
What is the result of running CALL dbms.procedures()? Do you see apoc.mongodb.get in the list?William Lyon
yeah i have run the command CALL dbms.procedures(), in that i got apoc.mongodb.getGayathri
I have run this command "CALL apoc.mongodb.get('mongodb://localhost:27017','test','test',{name:'testDocument'})" , I am getting error like this "Failed to invoke procedure apoc.mongodb.get: Caused by: java.lang.RuntimeException: Could not create MongoDBClientWrapper instance"Gayathri

1 Answers

1
votes

In addition to copying the APOC jar file to $NEO4J_HOME/plugins you'll also need to copy the mongo specific jar files into $NEO4J_HOME/plugins. For example:

mvn dependency:copy-dependencies
cp target/dependency/mongodb*.jar target/dependency/bson*.jar $NEO4J_HOME/plugins/

More information available in the docs here