neo4j find all nodes with matching properties

后端 未结 7 2074
走了就别回头了
走了就别回头了 2020-12-30 04:15

I have a relatively large set of nodes, and I want to find all pairs of nodes that have matching property values, but I don\'t know or care in advance what the property valu

7条回答
  •  忘掉有多难
    2020-12-30 04:38

    Neo4j 3.1.1

    HAS is no longer supported in Cypher, please use EXISTS instead.

    If you want to find nodes with specific property, the Cyper is as follows:

    MATCH (n:NodeLabel) where has(n.NodeProperty) return n
    

提交回复
热议问题