m MongoDB 中的文档有一个 ObjectId 类型的 _id。 在 Neo4j 中,节点通过 ObjectId 作为字符串表示对文档进行引用。但我无法弄清楚如何使用 apoc.mongodb 将 ObjectId 作为字符串查询文档。
Neo4j 4.2.1 社区和 APOC(+ mongodb 驱动程序)4.2.0
这显然行不通。
CALL apoc.mongodb.find("mongodb://host:port", "testdb", "testcoll", {_id: "6005c050d36d9acd28b8679b"}, null, null)
CALL apoc.mongodb.find("mongodb://host:port", "testdb", "testcoll", {_id: ObjectId("6005c050d36d9acd28b8679b")}, NULL, NULL)"