sensedeep / dynamodb-onetable

DynamoDB access and management for one table designs with NodeJS
https://doc.onetable.io/
MIT License
689 stars 109 forks source link

Getting error while update on object that contains undefined attribute value in it. #522

Closed mkdhasan81 closed 7 months ago

mkdhasan81 commented 9 months ago

Describe the bug

Getting error while update on object that contains undefined attribute value in it. Eventhough we passs this oprion in dynamodb client Marshall options still its giving the error

Error: Pass options.removeUndefinedValues=true to remove undefined values from map/array/set. at convertToAttr (/Users/h81761/Documents/workspace/poc/ts-lambda/node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js:99:11) at /Users/h81761/Documents/workspace/poc/ts-lambda/node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js:194:20 at convertToMapAttrFromEnumerableProps (/Users/h81761/Documents/workspace/poc/ts-lambda/node_modules/@aws-sdk/util-dynamodb/dist-cjs/index.js:198:5)

Environment (please complete the following information):

Additional context Add any other context about the problem here.

mobsense commented 9 months ago

Can you provide a test fail so we can reproduce.

mobsense commented 7 months ago

Closing for now