neo4j-contrib / neo4j-apoc-procedures

Awesome Procedures On Cypher for Neo4j - codenamed "apoc"                     If you like it, please ★ above ⇧            

Home Page:https://neo4j.com/labs/apoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Broken Dependencies with `apoc.mongo`

afoley587 opened this issue · comments

Guidelines

Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use APOC, please ask on the Neo4j Discussion Forum instead of creating an issue here.

Expected Behavior (Mandatory)

The following APOC procedures fail with dependency issues:

call apoc.mongo.count('mongodb://user:pass@mongo:27017/database.collection?authSource=admin', {}) yield value return value

results in

Failed to invoke procedure `apoc.mongo.count`: Caused by: java.lang.ClassNotFoundException: com.mongodb.client.MongoClients

Actual Behavior (Mandatory)

I would expect this to return the count of documents, but it seems that possibly the mongoDB driver wasn't updated appropriately.

How to Reproduce the Problem

Simple Dataset (where it's possibile)

//Insert here a set of Cypher statements that helps us to reproduce the problem

Steps (Mandatory)

  1. I installed Neo4j via docker and installed the plugins required:
$ ls
apoc-5.19.0-core.jar                            apoc-5.19.0-extended.jar                        apoc-mongodb-dependencies-5.19.0-all.jar
  1. I think ran the above APOC procedure:
call apoc.mongo.count('mongodb://user:pass@mongo:27017/database.collection?authSource=admin', {}) yield value return value

Screenshots (where it's possibile)

Screenshot 2024-04-21 at 9 39 11 AM

Specifications (Mandatory)

Currently used versions

Versions

  • OS: Darwin ARM64 (Docker)
  • Neo4j: 15.19-community (Docker)
  • Neo4j-Apoc: 5.19.0

Also facing the same issue