apoc.coll.sum

Function APOC Core

apoc.coll.sum([0.5,1,2.3])

Signature

apoc.coll.sum(numbers :: LIST? OF NUMBER?) :: (FLOAT?)

Input parameters

Name Type Default

numbers

LIST? OF NUMBER?

null

Usage Examples

The following computes the sum of values in a list:

RETURN apoc.coll.sum([1,2,3,4,5]) AS output;
Table 1. Results
Output

15.0