Created
September 5, 2020 01:06
-
-
Save SoftwareDevPro/6fe83c4d98cad52070c137dccb8de1e1 to your computer and use it in GitHub Desktop.
Returns all items from a given table in DynamoDb
This file contains hidden or 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
| async function scan(table) { | |
| try { | |
| let result = await ddb.scan({ TableName: table }).promise() | |
| console.log(result); | |
| } catch (err) { | |
| console.error(err); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment