You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In both queryParams and scanParams, the code is incorrectly stringifying limit. As is, with all default configurations, the code throws "SerializationException: STRING_VALUE cannot be converted to Integer".
I believe the fix is as simple as just changing limit ? { Limit: String(limit) } : null to limit ? { Limit: limit } : null and adjusting the expectations in table.query.unit.test.ts and table.scan.unit.test.ts
The text was updated successfully, but these errors were encountered:
In both
queryParams
andscanParams
, the code is incorrectly stringifyinglimit
. As is, with all default configurations, the code throws "SerializationException: STRING_VALUE cannot be converted to Integer".These are links to the two lines in Table.ts:
dynamodb-toolbox/src/classes/Table/Table.ts
Line 719 in 30a82ca
dynamodb-toolbox/src/classes/Table/Table.ts
Line 956 in 30a82ca
I believe the fix is as simple as just changing
limit ? { Limit: String(limit) } : null
tolimit ? { Limit: limit } : null
and adjusting the expectations in table.query.unit.test.ts and table.scan.unit.test.tsThe text was updated successfully, but these errors were encountered: