\BaoPhamDynamoDbQueryBuilder::getAll performs the following special logic when exact search is available. If item does not exist and null is returned, it should return an empty collection.
if ($analyzer->isExactSearch()) {
$item = $this->find($analyzer->identifierConditionValues(), $columns);
return $this->getModel()->newCollection([$item]);
}
Schema
Describe your table schema:
Primary key / composite key
AttributeName: id
AttributeType: S
KeyType: HASH
Describe the bug
Assume the name of the primary key in table
foos
isid
.Expected result: Empty collection
Actual result: Collection with null as an element.
\BaoPhamDynamoDbQueryBuilder::getAll performs the following special logic when exact search is available. If item does not exist and null is returned, it should return an empty collection.
Schema
Describe your table schema:
Primary key / composite key AttributeName: id AttributeType: S KeyType: HASH
Any index? no
Debug info
Version info