insert

fun insert(value: Any)

Inserts a value into an array at the index defined by the preceding subscripting. This will only succeed if the value at the subscripting-defined key is an index into an array.

Parameters

value

the value to insert into the array.

Throws

Thrown if trying to update the document at an invalid key.