Miscellaneous
promise:
- PROMISE – background – used while creating dynamo-db_table
Await – used above
Example-
await dynamo.updateItem({
TableName: process.env.HITS_TABLE_NAME,
Key: { path: { S: event.path } },
UpdateExpression: 'ADD hits :incr',
ExpressionAttributeValues: { ':incr': { N: '1' } }
}).promise();