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
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug
@aws-sdk/util-dynamodb
throws "Error: Unsupported type passed: [object Map]" for Map objectYour environment
SDK version number
@aws-sdk/[email protected]
Is the issue in the browser/Node.js/ReactNative?
All
Details of the browser/Node.js/ReactNative version
N/A
Steps to reproduce
Code
Observed behavior
Running the code throws the following error:
(node:11653) UnhandledPromiseRejectionWarning: Error: Unsupported type passed: [object Map]. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.
On passing
convertClassInstanceToMap=true
, it returns{}
Expected behavior
util-dynamodb converts JavaScript Map into DynamoDB Attribute Map
Additional context
Noticed while working on #1974
The text was updated successfully, but these errors were encountered: