Skip to content

Instantly share code, notes, and snippets.

@robzhu
Created May 2, 2019 18:17
Show Gist options
  • Save robzhu/348fad603bea79d4e8976602cd8df225 to your computer and use it in GitHub Desktop.
Save robzhu/348fad603bea79d4e8976602cd8df225 to your computer and use it in GitHub Desktop.
const result = await DynamoDB.get({
TableName,
Key: { id: "1234" }
}).promise();
console.log(result.Item.friends);
console.log(Array.isArray(result.Item.friends.values));
// Output:
Set {
wrapperName: 'Set',
values: [ 'frylock', 'meatwad', 'shake' ],
type: 'String' }
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment