I have a graph and I would like to obtain the list of degrees (across the nodes). The following statement does the trick :
the use of an aggregate function, such as count, causes the data to be grouped by the other items returned. These are called grouping keys. The aggregation we be applied over each unique combination of those parameters. This is true for aggregate functions on both ‘return’ and ‘with’ clauses. This is very similar to a SQL ‘group by’ clause.