mutate Document
abstract fun mutateDocument(sidOrUniqueName: String, mutator: SyncMutator, callback: SuccessListener<String>): CancellationToken
Mutate value of the SyncDocumentJava without opening it using provided Mutator function.
Return
CancellationToken which allows to cancel network request.
Parameters
sid Or Unique Name
SID or unique name of existing SyncDocumentJava.
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.