I know how to count the nodes and relationships in the graph. What about properties? Is this the correct answer?
match (n)
unwind keys(n) as key
return count(*)
I know how to count the nodes and relationships in the graph. What about properties? Is this the correct answer?
match (n)
unwind keys(n) as key
return count(*)
Yes this is the correct answer.
Reference
As noted in the reference; CALL db.schema.nodeTypeProperties()
might be useful too.