Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Neo4j和Cypher中逻辑运算的缩短_Neo4j_Cypher - Fatal编程技术网

Neo4j和Cypher中逻辑运算的缩短

Neo4j和Cypher中逻辑运算的缩短,neo4j,cypher,Neo4j,Cypher,如何缩短以下查询以显示相同的内容,但字数更少: 其中node.code“a”和node.code“b”和node.code“c”和node.code“d”和node.code“e”和node.code“f”您可以使用不需要的值的集合,并执行成员资格检查: WITH ['a', 'b', 'c', 'd', 'e', 'f'] as excludedCodes // though it's better to pass these in as a list parameter if you can

如何缩短以下查询以显示相同的内容,但字数更少:


其中node.code“a”和node.code“b”和node.code“c”和node.code“d”和node.code“e”和node.code“f”

您可以使用不需要的值的集合,并执行成员资格检查:

WITH ['a', 'b', 'c', 'd', 'e', 'f'] as excludedCodes
// though it's better to pass these in as a list parameter if you can
... // perform your matches and such
WHERE NOT node.code in excludedCodes
...