Neo4j密码:将时间戳存储为节点属性

时间:2018-08-23 18:54:14

标签: neo4j cypher

当尝试将时间戳记localdatetime()存储为节点属性updatedAt时:

MERGE (profile:Profile {userId:{id}})
      SET profile += {userId:{id}, updatedAt:localdatetime()}
      RETURN profile

我收到此错误:

Current record format does not support TEMPORAL_PROPERTIES. 
Please upgrade your store to the format that support requested capability.

我正在将Neo4j 3.4.4作为Docker容器版本运行,因此不应发生此错误。我的密码查询错误吗?

1 个答案:

答案 0 :(得分:0)

我可以通过以下方式解决此问题:

删除所有节点: MATCH (n) DETACH DELETE n;

删除所有graph.db标签和属性: sudo rm -rf neo4j/data/databases/graph.db/*.*