aws-sdk-js icon indicating copy to clipboard operation
aws-sdk-js copied to clipboard

Give DynamoDB DocumentClient ability to marshall Set<string>

Open Birowsky opened this issue 5 years ago • 4 comments

I was surprised to see that marshalling of Set<string> is not supported as I got the following error:

ValidationException: Supplied AttributeValue is empty, must contain exactly one of the supported datatypes

I found this workaround to this feature, but I'm wondering, since javascript supports sets natively, what are the plans to bring that support to the marshall/unmarshall as well?

Birowsky avatar May 24 '20 20:05 Birowsky

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

github-actions[bot] avatar May 25 '21 00:05 github-actions[bot]

Attention

Birowsky avatar May 25 '21 01:05 Birowsky

Greetings! We’re closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or open a new issue.

github-actions[bot] avatar May 26 '22 00:05 github-actions[bot]

Nudge

Birowsky avatar May 26 '22 00:05 Birowsky

Hey @Birowsky apologies this was never picked up. This fell out of the queue and had very low visibility. With that being said the behavior is documented at: docs which has a section on Support for Sets as well which links to the workaround you have mentioned.

ajredniwja avatar Dec 01 '22 22:12 ajredniwja

I understand. Thanks. But the question is still relevant, I would say. Do you intend to provide support for native sets?

Birowsky avatar Dec 01 '22 22:12 Birowsky

Unfortunately there is currently no plans to implement it in this repo. To implement, I believe a customization can be written to use createSet() but the team wont be working on it. Most of the features are prioritized in V3 of the repo currently based on different factors used to set priority.

We are formalizing our plans to enter AWS SDK for JavaScript v2 into maintenance mode in 2023. For more details, check our README in Version 2.x Support.

ajredniwja avatar Dec 02 '22 21:12 ajredniwja