apoc.coll.min

Function

apoc.coll.min(values LIST<ANY>) - returns the minimum of all values in the given LIST<ANY>.

This function is not considered safe to run from multiple threads. It is therefore not supported by the parallel runtime (introduced in Neo4j 5.13). For more information, see the Cypher Manual → Parallel runtime.

Signature

apoc.coll.min(values :: LIST<ANY>) :: ANY

Input parameters

Name Type Default

values

LIST<ANY>

null

Usage examples

The following computes the minimum of values in a list:

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

1