apoc.coll.remove

Function APOC Core

apoc.coll.remove(coll, index, [length=1]) | remove range of values from index to length

Signature

apoc.coll.remove(coll :: LIST? OF ANY?, index :: INTEGER?, length = 1 :: INTEGER?) :: (LIST? OF ANY?)

Input parameters

Name Type Default

coll

LIST? OF ANY?

null

index

INTEGER?

null

length

INTEGER?

1

Usage Examples

The following removes 2 values, starting from index 1:

RETURN apoc.coll.remove([1,3,5,7,9], 1, 2) AS output;
Table 1. Results
Output

[1, 7, 9]