【问题标题】:Neo4j cypher: Store timestamp as a node propertyNeo4j 密码:将时间戳存储为节点属性
【发布时间】:2018-08-23 18:54:14
【问题描述】:

当尝试将时间戳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 容器版本运行,因此不应发生此错误。我的密码查询有误吗?

【问题讨论】:

    标签: neo4j cypher


    【解决方案1】:

    我能够解决这个问题:

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

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

    【讨论】:

    • 这表明这是一个发生 Neo4j 升级但未执行商店升级的问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多