partialUpdateObject method
PartialUpdateObject
partialUpdateObject the object referred to by object
.
Partially update an object. You must set the objectID attribute to indicate the object to update. Equivalent to Partially update an object.
Implementation
void partialUpdateObject(Map<String, dynamic> data) {
if (!_committed) {
assert(_index != '*' && _index != '',
'IndexName is required, but it has `*` multiple flag or `null`.');
_actions
.add(AlgoliaBatchRequest(action: 'partialUpdateObject', body: data));
} else {
throw StateError(
'This batch has been committed and can no longer be changed.');
}
}