ditto / live.ditto / DittoMutableDocumentPath / insert

insert

fun insert(value: Any): Unit

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.

Exceptions

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