the context
the collection to update
the _id value of the object to update
the set of updates to apply.
options to apply
Optional
condition?: CompositeConditionan optional conditional expression that must be satifisfied for the update to proceed
the 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 child document using its
_id
and parent_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.