replaceWithCounter

fun replaceWithCounter(isDefault: Boolean = false)

Replace a value at the document's key defined by the preceding subscripting with a counter.

Parameters

isDefault

represents whether or not the value is being replaced with a counter that should serve as a default value. Set this to true if you want to set a default value that you expect to be overwritten by other devices in the network. The default value is false.

Throws

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