0

我正在使用带有 bolt+s 协议的 Neptune 版本 1.0.5.0。
我运行了以下查询: MATCH (n) return n limit 1
with Node.js neo4j latest driver (4.3) 并得到以下错误:

Neo4jError: "Unexpected server exception 'Data type unsupported in Bolt in current release  
http://www.w3.org/2001/XMLSchema#dateTime'"  
:  
at captureStacktrace (result.js:239:17)  
at new Result (result.js:59:23)  
at Session._run (session.js:165:16)  
at Session.run (session.js:131:21)  

代码:

const session = db.getSession();
try {
    const result = await session.run(query);
    ...

虽然相同的代码适用于本地 Neo4j 服务器。
此外,运行:“MATCH (n) return n.myprop limit 1”适用于 Neptune。
任何帮助将不胜感激。

4

1 回答 1

2

根据错误消息,返回的节点似乎包含一个 datetime 属性,并且在 openCypher for Neptune 的 1.0.5.0R0 版本中,尚不支持通过连接的 Bolt 返回 datetime 属性。当前支持使用 HTTPS 端点返回日期时间值,如下所述:https ://docs.aws.amazon.com/neptune/latest/userguide/access-graph-openencypher-queries.html

于 2021-08-03T04:08:27.290 回答