Count of properties

cypher

(Ramboxoffice) #1

how to list each property of the node for the complete db and the corresponding count. Idea is to reconcile the data received from source system is loaded or not #neo4j-graph-platform:cypher


(Michael Hunger) #2

In Neo4j 3.5 there will be a procedure.

Otherwise you can just aggregate:

match (n) 
unwind keys(n) as key
return labels(n), key, count(*)

But it is a pretty expensive operation.