You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have found in our use of DynamoDB local that the response from real AWS DynamoDB and Local DynamoDB are different when you attempt to delete data which does not exist. When using DynamoDB local the callback for <DynamoDbInstance>.deleteItem is called with a non-null value for the data parameter, however, for real AWS DynamoDB the callback is called with null for the data parameter.
Here is a representation of how we are exuting the deleteItem command:
varparams={Key: invalidKey,// key that does not exist TableName: "validTable"// table exists};dynamodb.deleteItem(params,function(err,data){// data here should be null, which is the correct AWS behaviourif(err)console.log(err,err.stack);elseconsole.log(data);});
When the data parameter is not null, dynamodb local responds with the following:
We have found in our use of DynamoDB local that the response from real AWS DynamoDB and Local DynamoDB are different when you attempt to delete data which does not exist. When using DynamoDB local the callback for
<DynamoDbInstance>.deleteItem
is called with a non-null value for the data parameter, however, for real AWS DynamoDB the callback is called with null for the data parameter.We use
dynamodb-localhost
throughserverless-dynamodb-local
. We use[email protected]
which pulls in[email protected]
Here is a representation of how we are exuting the deleteItem command:
When the data parameter is not null, dynamodb local responds with the following:
The text was updated successfully, but these errors were encountered: