creating item from dynamodb-admin GUI always sets attribute to "L" for List/Array and there is no way to set attribute to "SS" (String Set) or any other set
Opened this issue · 5 comments
eventhough https://github.com/aws/aws-sdk-js/blob/master/lib/dynamodb/document_client.js supports createSet, https://github.com/aaronshaf/dynamodb-admin/blob/master/lib/backend.js does not make use of createSet. There is no option available to control whether the created item's attributes will be Lists or Sets. backend.js simply calls putItem with params
{
TableName,
Item: req.body
}
It would be nice if backend.js checks for "special" param inside req.body and uses that to understand that certain attributes should be converted from Lists to Sets before invokng putItem. Anyother mechanism to control the choice of attributes will also be nice.
I ran into the same problem and created #218 .
any quick fix to get around the issue, it screwed up a lot of my data.
@jl-DaDar You can use my fork as a workaround: https://github.com/blindpirate/dynamodb-admin/tree/add-raw-mode
@jl-DaDar You can use my fork as a workaround: https://github.com/blindpirate/dynamodb-admin/tree/add-raw-mode
How do I use your branch, I am using the docker image of the dynamodb-admin
?
git clone https://github.com/blindpirate/dynamodb-admin.git
cd dynamodb-admin
git checkout add-raw-mode
npm install -g
dynamodb-admin