Created
May 2, 2019 18:17
-
-
Save robzhu/348fad603bea79d4e8976602cd8df225 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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