【发布时间】:2015-11-03 15:36:03
【问题描述】:
为了用密码表达条件,我仍然使用以下技巧:
FOREACH(ignoreMe IN CASE WHEN //Put conditions here// THEN [1] ELSE [] END |
//Put instruction here// )
我已经用了很长时间了。现在有更好的解决方案吗?下个稳定版会有吗?
编辑: 我指的是不能使用 MATCH/WHERE 模式的情况。 举个例子 : Create nodes and relations conditionally when loading nodes from csv in Neo4j
或https://stackoverflow.com/search?q=FOREACH%28ignoreMe+IN+CASE+WHEN
【问题讨论】:
-
我通常根据实际图中的数据来做条件;例如MATCH (a) where a.someCondition = 1 WITH a (do something else)