diff --git a/README.md b/README.md index f5ca6b3..bcbecea 100644 --- a/README.md +++ b/README.md @@ -202,7 +202,30 @@ await tsynamoClient ## Delete item -WIP +### Simple delete item + +```ts +await tsynamoClient + .deleteItem("myTable") + .keys({ + userId: "123", + eventId: 313, + }) + .execute(); +``` + +### Simple delete item with ConditionExpression + +```ts +await tsynamoClient + .deleteItem("myTable") + .keys({ + userId: "123", + eventId: 313, + }) + .conditionExpression("eventType", "attribute_not_exists") + .execute(); +``` ## Update item