dyna-record
    Preparing search index...

    Type Alias UpdateOptions<T>

    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.

    Type Parameters

    await MockModel.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
    })
    Partial ObjectAttribute update
    await MockModel.update("123", {
    address: { street: "456 Oak Ave" } // Only updates street, preserves other fields
    })