Support Select=COUNT when querying.
This commit is contained in:
parent
f5406ad212
commit
c9f43c885a
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue