deleteItem

Spec

async deleteItem(
    tnmInput: TynamoDeleteItemInput<TSource>
): Promise<TynamoDeleteItemOutput<TSource>>

Input

export interface TynamoDeleteItemInput<TSource> {
    Key: Partial<TSource>;
    ExpressionAttributeValues?: any;
    
    // Derived from DynamoDB.
    ReturnValues?: ReturnValue;
    ReturnConsumedCapacity?: ReturnConsumedCapacity;
    ReturnItemCollectionMetrics?: ReturnItemCollectionMetrics;
    ConditionExpression?: ConditionExpression;
    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 deleteItem operation.

Unlisted param is derived from DynamoDB.

Check here for more information.

Example

Last updated

Was this helpful?