There was a bug in the V3 Commands for the Document Client. Instead of using the Command from @aws-sdk/lib-dynamodb, we were re-using the @aws-sdk/client-dynamodb Commands which expect the data to be in the Attribute Value format. This resulted in serialization errors.
Fixes #33
There was a bug in the V3 Commands for the Document Client. Instead of using the Command from
@aws-sdk/lib-dynamodb
, we were re-using the@aws-sdk/client-dynamodb
Commands which expect the data to be in the Attribute Value format. This resulted in serialization errors.See: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/dynamodb-example-dynamodb-utilities.html for official documentation on how to use the DocumentClient with V3's AWS SDK.
This change adds new Commands specific to v3's document client. The new commands follow the naming convention:
TypeSafe*DocumentCommand
:TypeSafeGetDocumentCommand
TypeSafePutDocumentCommand
TypeSafeDeleteDocumentCommand
TypeSafeUpdateDocumentCommand
TypeSafeQueryDocumentCommand
TypeSafeScanDocumentCommand
Example:
BREAKING CHANGE: JsonFormat removed from V3 command's type parameters