Attributes of an entity to update. Not all properties are required. Setting a nullable property to null will remove the attribute from the item.
For @ObjectAttribute fields, all nested fields are Partial — you only need to provide the
fields you want to change. Omitted fields are preserved in DynamoDB via document path expressions.
awaitMockModel.update("123", { nonNullableAttr:"new val", // Sets new value nullableAttr:null// Remove the value. This will throw a compile time error if the property is not nullable })
Example
PartialObjectAttributeupdate awaitMockModel.update("123", { address: { street:"456 Oak Ave" } // Only updates street, preserves other fields })
Attributes of an entity to update. Not all properties are required. Setting a nullable property to null will remove the attribute from the item.
For
@ObjectAttributefields, all nested fields arePartial— you only need to provide the fields you want to change. Omitted fields are preserved in DynamoDB via document path expressions.