apoc.coll.insertAll
Function APOC Core
apoc.coll.insertAll(coll, index, values) | insert values at index
Signature
apoc.coll.insertAll(coll :: LIST? OF ANY?, index :: INTEGER?, values :: LIST? OF ANY?) :: (LIST? OF ANY?)
Input parameters
Name | Type | Default |
---|---|---|
coll |
LIST? OF ANY? |
null |
index |
INTEGER? |
null |
values |
LIST? OF ANY? |
null |
Usage Examples
The following inserts the values 11
, 12
, and 13
at index 3
in the list:
RETURN apoc.coll.insertAll([1,3,5,7,9], 3, [11,12,13]) AS output;
Output |
---|
[1, 3, 5, 11, 12, 13, 7, 9] |
Was this page helpful?