push

fun push(value: Any)

Push a value on to the end of an array at the document's key defined by the preceding subscripting. This will only succeed if the value at the subscripting-defined key is an array.

Parameters

value

the value to push on to the array.

Throws

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