Skip to Content
Cypher ManualExpressionAggregate Functions

Aggregate Function

Aggregate Functions are primarily used to group current data and perform aggregation operations on elements within each group, ultimately producing only a single value for each group. The Aggregate Functions supported by NeuG are as follows:

FunctionDescriptionCan be used with DISTINCTExample
countreturn the row countsYESReturn count (a.name);
collectcollect the elements in a single listYESReturn collect(a.name);
minreturn the minimum valueNOReturn min(a.age);
maxreturn the maximum valueNOReturn max(a.age);
sumsum up the valueNOReturn sum(a.age);
avgreturn the average valueNOReturn avg(a.age);