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);
Last updated on