本例使用exists()函数:
MATCH (p:Person) WHERE exists((p)-[:LIVING_IN]->(:Country {name: 'Germany'})) RETURN p.name ORDER BY p.name;
该查询与以下内容有何不同:
MATCH (p:Person)-[:LIVING_IN]->(:Country {name: 'Germany'}) RETURN p.name ORDER BY p.name
为什么要使用
exist()
功能?
我不明白 exist() 函数有什么区别或用例。