相关疑难解决方法(0)

密钥上的条件数是带有节点js的无效dynamo db

docClient.update({
    TableName: 'patient',
    Key: {
        "patientId": "TIGERPAT0001"
    },
    UpdateExpression: "set title = :x, name = :y",
    ExpressionAttributeNames: {
        "#name": "name"
    },
    ExpressionAttributeValues: {
        ":x": 'title value abc',
        ":y": 'name value xyz'
    }
}, function (err, data) {
    if (err) {
        json.status = '0';
        json.result = { 'error': 'Unable to Edit Patient : ' + JSON.stringify(err) };
        res.send(json);
    } else {
        json.status = '1';
        json.result = { 'sucess': 'Patient Edited Successfully :' };
        res.send(json);
    }
});
Run Code Online (Sandbox Code Playgroud)

当使用上面的代码时,我得到了res:

无法编辑患者错误: {"message":"The number of …

node.js amazon-dynamodb

7
推荐指数
1
解决办法
9635
查看次数

标签 统计

amazon-dynamodb ×1

node.js ×1