Match a node only if ALL specific connected nodes have a specific label

We can do this with pattern comprehensions (which let us get the results of a MATCH in a list) and the all() list predicate:

MATCH (manufacturer:Manufacturer)
WHERE all(brand in [(manufacturer)-[:HAS_BRAND]->(brand) | brand] WHERE brand:Ready)
RETURN manufacturer
1 Like