awslabs / dynamodb-data-mapper-js

A schema-based data mapper for Amazon DynamoDB.
https://awslabs.github.io/dynamodb-data-mapper-js/
Apache License 2.0
817 stars 106 forks source link

Scan Error when passing startKey for Model with fields that are not dynamo attributes #181

Open krazibit opened 4 years ago

krazibit commented 4 years ago

The if check should come before destructuring as seen below https://github.com/awslabs/dynamodb-data-mapper-js/blob/d52b9dfea14851235843a0879e5754822c0e462d/packages/dynamodb-data-mapper/src/marshallStartKey.ts#L14-L15

krazibit commented 4 years ago

fixed here https://github.com/krazibit/dynamodb-data-mapper-js ~but unable to open a PR~ PR opened