我使用的是海王星1.0.5.0版,采用的是Bolt+s协议。
我运行了以下查询:Match(N)Return n Limit 1
使用Node.js neo4j最新驱动程序(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服务器上运行。
此外,Running:MATCH (n) return n.myprop limit 1
适用于海王星。
任何帮助都将不胜感激。
1条答案
按热度按时间m1m5dgzv1#
According to the error message, it looks like the node being returned contains a datetime property and in the 1.0.5.0R0 release of openCypher for Neptune returning of datetime properties is not yet supported via the Bolt connected. Returning datetime values is currently supported using the HTTPS endpoint as described here: https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-opencypher-queries.html