I have a question about Cypher query with neo4j database. Suppose that I have a number of nodes like (node:student{name:"Alice"}). How can I get the name that appear most frequently with cypher query?
I have a simple solution like:
MATCH (n:student)
RETURN n.name,count(*) as times
ORDER BY times DESC
LIMIT 1;
Is there another way to get the same result, without using ORDER BY and LIMIT clause? Such as any build-in function like MAX(),..etc