your document type - used to set return type
context
the collection to update
the _id value of the object to update
the set of updates to apply.
options to apply (including conditional checks)
Optional
condition?: CompositeConditionthe updated object value in its entirety.
CollectionNotFoundException collection not found
InvalidUpdatesException thrown when the updates object is invalid or incomplete
InvalidUpdateValueException thrown when one of the update values is an invalid type
Generated using TypeDoc
Update a document using its
_id
.This operation allows you to do a partial update of a collection document i.e. without specifying all the values (it uses DynamoDB
s
UpdateItem` operation).At this time, the
updates
value just updates specified key paths on the target document.If some of the update key paths are indexed values, the indexes will also be updated. Because of this, you must specify all the key values in an access pattern to ensure indexes are updated consistently.