Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions content/hands-on-labs/explore-cli/cli-writing-data.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ aws dynamodb update-item \
--key '{
"Id" : {"N": "201"}
}' \
--update-expression "SET #Color = list_append(#Color, :values)" \
--expression-attribute-names '{"#Color": "Color"}' \
--update-expression "SET #Color = list_append(Color, :values)" \
--expression-attribute-values '{
":values" : {"L": [{"S" : "Blue"}, {"S" : "Yellow"}]}
}' \
--return-values ALL_NEW \
--return-consumed-capacity TOTAL
```

Expand All @@ -148,8 +148,8 @@ aws dynamodb update-item \
--key '{
"Id" : {"N": "201"}
}' \
--update-expression "REMOVE #Color[2], #Color[3]" \
--expression-attribute-names '{"#Color": "Color"}' \
--update-expression "REMOVE Color[2], Color[3]" \
--return-values ALL_NEW \
--return-consumed-capacity TOTAL
```

Expand Down