Dynamodb 根据文档类型 Map.AttributeName 的存在扫描项目
Dynamodb scan items by presence of a Document Type Map.AttributeName
我有这个项目结构:
{
"Items": [
{
"serviceName": {
"S": "B"
},
"sharedData": {
"M": {
"five": {
"S": "5"
}
}
}
}
}
我想通过 sharedData 映射中存在的键 5“five”来扫描数据。类似于 sharedData.five exists
或 sharedData.five == *
.
这可能吗?
aws dynamodb scan --table-name YOURTABLE --filter-expression 'attribute_exists(sharedData.five)'
这是 CLI 答案。你需要把它变成Java,这很简单。
我有这个项目结构:
{
"Items": [
{
"serviceName": {
"S": "B"
},
"sharedData": {
"M": {
"five": {
"S": "5"
}
}
}
}
}
我想通过 sharedData 映射中存在的键 5“five”来扫描数据。类似于 sharedData.five exists
或 sharedData.five == *
.
这可能吗?
aws dynamodb scan --table-name YOURTABLE --filter-expression 'attribute_exists(sharedData.five)'
这是 CLI 答案。你需要把它变成Java,这很简单。