apoc.coll.max

Function

apoc.coll.max(values [Any]) - returns the maximum of all values in the given list.

Signature

apoc.coll.max(values :: LIST? OF ANY?) :: (ANY?)

Input parameters

Name Type Default

values

LIST? OF ANY?

null

Usage examples

The following computes the maximum of values in a list:

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

5