116
Neo4j COUNT() Function
In Neo4j database, COUNT() function is used to count the number of rows.
Syntax:
Example:
Use the following query to demonstrate the usage of COUNT() function. It will count the numbers when India is winner.
Output:
Group COUNT
You can also use COUNT() function to count the groups of relationship types.
Example:
The following query counts and returns the number of nodes participating in each relation.
Next TopicNeo4j Write Clauses