apoc.coll.set
Function APOC Core
apoc.coll.set(coll, index, value) | set index to value
Usage Examples
The following replaces the item at index 4
with the value 11
:
RETURN apoc.coll.set([1,3,5,7,9], 4, 11) AS output;
Output |
---|
[1, 3, 5, 7, 11] |
Was this page helpful?