Support Select=COUNT when querying.
This commit is contained in:
parent
f5406ad212
commit
c9f43c885a
@ -330,9 +330,10 @@ class DynamoHandler(BaseResponse):
|
||||
|
||||
result = {
|
||||
"Count": len(items),
|
||||
"Items": [item.attrs for item in items],
|
||||
"ConsumedCapacityUnits": 1,
|
||||
}
|
||||
if self.body.get('Select', '').upper() != 'COUNT':
|
||||
result["Items"] = [item.attrs for item in items]
|
||||
|
||||
# Implement this when we do pagination
|
||||
# if not last_page:
|
||||
|
Loading…
Reference in New Issue
Block a user