I have a Neo4J database structured like in this picture.
It's representing the people from a school. want a query that would allow me to count the nodes on multiple properties/labels.
I need the response to look something like this.
{
teachers: 2,
staff: 5,
students: {
total: 3,
overNine:1,
overEight:1,
over seven:1
},
peopleInSchool:[
{
name: name1,
details: someDetailedProperty1
},
{
name: name2,
details:someDetailedProperty2
}
]
}