showing results for - "dynamodb async await"
Camilla
01 Jun 2017
1try {
2    const data = await dynamodb.put(paramsPut).promise()
3    console.log("Success")
4    console.log(data)
5    return data
6} catch (err) {
7    console.log("Failure", err.message)
8    // there is no data here, you can return undefined or similar
9}
10