遇到类似失败的错误:
WebSocket握手过程中的错误:意外的响应代码:200。
连接已成功建立,但是在尝试执行查询时遇到错误。在有角项目中可用here。
代码如下:
this.neo4j
.connect(
url,
username,
password,
encrypted
)
.then(driver => {
if (driver) {
console.log(`Successfully connected to ${url}`, driver);
debugger;
this.neo4j.run(‘query').then(res => {
console.log(res);
this.neo4j.disconnect();
});
}
});
在此错误。neo4j.run('query')