Data selections
Written by
Updated at January 30, 2024
To select data from the series
table by the series_id
key:
AWS CLI
Run the command by replacing https://your-database-endpoint
with the previously prepared Document API endpoint of your DB:
Warning
To work with the AWS CLI from Windows, we recommend using the WSL
endpoint="https://your-database-endpoint"
aws dynamodb query \
--table-name series \
--key-condition-expression "series_id = :name" \
--expression-attribute-values '{":name":{"N":"2"}}' \
--endpoint $endpoint
Result:
{
"Items": [
{
"series_id": {
"N": ".2e1"
},
"title": {
"S": "Silicon Valley"
},
"release_date": {
"S": "2014-04-06"
},
"series_info": {
"S": "Silicon Valley is an American comedy television series created by Mike Judge, John Altschuler and Dave Krinsky. The series focuses on five young men who founded a startup company in Silicon Valley."
}
}
],
"Count": 1,
"ScannedCount": 1,
"ConsumedCapacity": null
}