Neo4j 如何查找具有大于或等于n个标签的所有节点?

Neo4j 如何查找具有大于或等于n个标签的所有节点?,neo4j,cypher,Neo4j,Cypher,我需要找到具有大于或等于n个标签的所有节点(不知道任何标签)。有没有一种简单的方法可以使用密码来实现这一点 With 3 as numberOfLabels Match (n) where size(labels(n)) >= numberOfLabels

我需要找到具有大于或等于n个标签的所有节点(不知道任何标签)。有没有一种简单的方法可以使用密码来实现这一点

With 3 as numberOfLabels
Match (n) where size(labels(n)) >= numberOfLabels