updateItem

Spec

async updateItem(
    tnmInput: TynamoUpdateItemInput<TSource>
): Promise<TynamoUpdateItemOutput<TSource>>

Input

export interface TynamoUpdateItemInput<TSource> {
    Key: Partial<TSource>;
    ExpressionAttributeValues?: any;
    
    // Derived from DynamoDB.
    ReturnValues?: ReturnValue;
    ReturnConsumedCapacity?: ReturnConsumedCapacity;
    ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics;
    ConditionExpression?: ConditionExpression;
    UpdateExpression?: UpdateExpression;
    ExpressionAttributeNames?: ExpressionAttributeNameMap;
}

Name

Type

Info

Key

@DynamoEntity

The key of item.

ExpressionAttributeValues

@DynamoEntity

Value used for expression.

Unlisted param is derived from DynamoDB.

Check here for more information.

Output

Name

Type

Info

Attributes

@DynamoEntity

Result of updateItem operation.

Unlisted param is derived from DynamoDB.

Check here for more information.

Example

Last updated

Was this helpful?