Neo4j Cypher : No of Relations for Each Node -


what cypher find no of edges/relationships of each user/node ? want return count each user.

the fastest way, uses node.getdegree internally.

you can separate rel-pattern direction , relationship-type.

match (n:user) return n, size((n)--()) degree 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

wso2esb - How to concatenate JSON array values in WSO2 ESB? -