apoc.coll.set
Function
apoc.coll.set(coll [Any], index Integer, value Any)
- sets the element at the given index to the new 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?