prorm API Reference
    Preparing search index...

    Interface PutItemOptions

    interface PutItemOptions {
        conditionExpression?: string;
        expressionAttributeNames?: Record<string, string>;
        expressionAttributeValues?: Record<string, unknown>;
        returnValues?: ReturnValue | DynamoReturnValues;
    }
    Index
    conditionExpression?: string

    Conditional write, e.g. 'attribute_not_exists(pk)' to emulate an insert-only put.

    expressionAttributeNames?: Record<string, string>
    expressionAttributeValues?: Record<string, unknown>
    returnValues?: ReturnValue | DynamoReturnValues

    PutItem only supports 'NONE' (default) or 'ALL_OLD' (returns the item's previous value if one existed, or nothing if it didn't) — unlike UpdateItem, there is no ALL_NEW/UPDATED_* variant since a Put always writes the whole item.