You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: