Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #96

Open
sivnag opened this issue May 26, 2020 · 5 comments · May be fixed by #218

Comments

@sivnag
Copy link

sivnag commented May 26, 2020

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.

@blindpirate blindpirate linked a pull request Feb 20, 2022 that will close this issue
@blindpirate
Copy link

I ran into the same problem and created #218 .

@jl-DaDar
Copy link

any quick fix to get around the issue, it screwed up a lot of my data.

@blindpirate
Copy link

@jl-DaDar You can use my fork as a workaround: https://github.com/blindpirate/dynamodb-admin/tree/add-raw-mode

@jcjp
Copy link

jcjp commented Aug 24, 2022

@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?

@tony-hizzle
Copy link

tony-hizzle commented Oct 28, 2022

@jcjp

git clone https://github.com/blindpirate/dynamodb-admin.git
cd dynamodb-admin
git checkout add-raw-mode
npm install -g
dynamodb-admin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants