Answers for "dynamodb async await"

0

dynamodb async await

try {
    const data = await dynamodb.put(paramsPut).promise()
    console.log("Success")
    console.log(data)
    return data
} catch (err) {
    console.log("Failure", err.message)
    // there is no data here, you can return undefined or similar
}
Posted by: Guest on March-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language