📜  dynamodb async await - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:14.792000             🧑  作者: Mango

代码示例1
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
}