【发布时间】:2018-06-21 14:33:11
【问题描述】:
我正在努力寻找一个使用当前 gremlin javascript 驱动程序和 OrientDB 的示例。我无法让它连接到 OrientDB(已经使用启用 tinkerpop 的版本)。
我的示例代码如下所示:
const gremlin = require("gremlin")
const DriverRemoteConnection = gremlin.driver.DriverRemoteConnection
const graph = new gremlin.structure.Graph()
const g = graph.traversal().withRemote(new DriverRemoteConnection('ws://localhost:8182/demodb'))
g.V().toList().then(function(data) {
console.log(data)
}).catch(function(err) {
console.log(err)
})
有人有任何一起使用它们的经验吗?谢谢
【问题讨论】:
-
你有什么问题?你能运行 OrientDB TP3 版中嵌入的 GremlinServer 吗?
-
是的,我可以通过 gremlin 控制台连接到数据库,但不能通过 gremlin javascript 驱动程序。
-
你有重现这个的要点吗?谢谢
标签: orientdb gremlin tinkerpop tinkerpop3