Hi,
I would like to extend my question.
I want to check 2 fields together simultaneously such as
MATCH (manufacturer:Manufacturer)
WHERE all(brand in [(manufacturer)-[:HAS_BRAND]->(brand)<-[:HAS_PART]-(part2), (brand)<-[:HAS_PART]-(part1) | [part1, part2]] WHERE part1:Ready AND part2:Ready)
RETURN manufacturer
The above doesn't really work as I am getting this error
Invalid input '|': expected whitespace, comment, a relationship pattern, '.', node labels, '[', '^', '*', '/', '%', '+', '-', "=~", IN, STARTS, ENDS, CONTAINS, IS, '=', '~', "<>", "!=", '<', '>', "<=", ">=", AND, XOR, OR, ',' or ']'
Basically the issue is contructing this array when it is required to do more than 1 match
[(manufacturer)-[:HAS_BRAND]->(brand)<-[:HAS_PART]-(part2), (brand)<-[:HAS_PART]-(part1) | [part1, part2]]
Thanks!