Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
简单的问题,我很难用谷歌搜索。使用cyphervia node-neo4j,我想在查询后运行一些逻辑,但前提是我MERGE创建的节点(即ON CREATE内部查询被触发),不匹配它。我怎样才能做到这一点?
cypher
node-neo4j
MERGE
ON CREATE
您可以拥有created_at和matched_at字段,MERGE然后在返回对象时检查它们是否相等:
created_at
matched_at
MERGE (f:Foo) ON CREATE SET f.created_at = timestamp() ON MATCH SET f.matched_at = timestamp() RETURN f