Cypher Return Node with MAX(n.property)

前端 未结 1 596
花落未央
花落未央 2021-01-19 05:13

With Cypher, I\'m trying to return the node of the highest score. However it either just returns the score without any id to the node, what do I need to add to

相关标签:
1条回答
  • 2021-01-19 05:27

    This solution should give you both the score and node.

    start n=node(*) WHERE HAS(n.score) RETURN n, n.score ORDER BY n.score LIMIT 1
    
    0 讨论(0)
提交回复
热议问题