update
Update the document with the matching identifier.
Return
a list of DittoUpdateResult that describes the updates that were performed on the document.
Parameters
a closure that gets called with the document matching the identifier. If found, the document is a DittoMutableDocument, so you can call update-related functions on it. If the document is not found then the value provided to the closure will be null
.
Update the document with the matching identifier.
Return
a list of DittoUpdateResult that describes the updates that were performed on the document.
Parameters
an object that implements DittoSingleMutableDocumentUpdater, whose update
function gets called with the document matching the query, if the document is found. If the document is not found then the value provided to the function will be null
.