Give DynamoDB DocumentClient ability to marshall Set<string>
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?
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.
Attention
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.
Nudge
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.
I understand. Thanks. But the question is still relevant, I would say. Do you intend to provide support for native sets?
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.