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