We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cb3b67 commit 1271836Copy full SHA for 1271836
shared-code/src/data-access-layer/data-access-objects/data-access-object-dynamodb.ts
@@ -607,7 +607,9 @@ export class DataAccessObjectDynamoDB extends BasicDataAccessObject implements I
607
items.forEach((item) => {
608
Object.keys(item).forEach((key) => {
609
if (!attributeTypes[key]) {
610
- attributeTypes[key] = typeof item[key];
+ const attributeValue = item[key];
611
+ const attributeType = Object.keys(attributeValue)[0];
612
+ attributeTypes[key] = attributeType;
613
}
614
});
615
0 commit comments