diff --git a/moto/dynamodb2/responses.py b/moto/dynamodb2/responses.py index 20c45560d..901ae8e92 100644 --- a/moto/dynamodb2/responses.py +++ b/moto/dynamodb2/responses.py @@ -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: