mutate Data
abstract fun mutateData(mutator: SyncMutator, callback: SuccessListener<SyncDocumentJava>): CancellationToken
Mutate value of the SyncDocumentJava using provided Mutator function. Once this method finished the jsonData property contains updated document data.
Return
CancellationToken which allows to cancel network request.
Parameters
mutator
SyncMutator which will be applied to document data.
callback
Async result listener that will receive new value of the SyncDocumentJava as a serialised JSON object in its onSuccess() callback or any error in onFailure() callback.