Dynamodb通过Document Type Map.AttributeName的存在来扫描项 &



我有这样的Item结构:

{
"Items": [
{
"serviceName": {
"S": "B"
},
"sharedData": {
"M": {
"five": {
"S": "5"
}
}
}
}
}

我想通过键5 "five"扫描数据共享数据映射。例如sharedData.five existssharedData.five == *

这可能吗?

aws dynamodb scan --table-name YOURTABLE --filter-expression 'attribute_exists(sharedData.five)'

下面是CLI的答案。您需要将其转换为Java,这很简单。

最新更新