dynamodb-doc-client-wrapper
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -171,3 +171,4 @@ 'use strict'; | ||
batchWrite: batchWrite, | ||
batchWriteBasic: params => documentClient.batchWrite(params) | ||
batchWriteBasic: params => documentClient.batchWrite(params), | ||
update: params => documentClient.update(params) | ||
}; |
@@ -13,3 +13,4 @@ 'use strict'; | ||
put: params => documentClient.put(params).promise(), | ||
batchWrite: params => documentClient.batchWrite(params).promise() | ||
batchWrite: params => documentClient.batchWrite(params).promise(), | ||
update: params => documentClient.update(params).promise() | ||
}; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": ">=4.3" |
@@ -247,2 +247,17 @@ # dynamodb-doc-client-wrapper | ||
### Update | ||
```js | ||
const clientWrapper = require('dynamodb-doc-client-wrapper'); | ||
yield clientWrapper.update({ | ||
TableName: 'Table', | ||
Key: { HashKey : 'hashkey' }, | ||
UpdateExpression: 'set #a = :x + :y', | ||
}); | ||
``` | ||
This is a simple pass-through wrapper around the | ||
`AWS.DynamoDB.DocumentClient.update` method. | ||
### Delete | ||
@@ -249,0 +264,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55871
1251
279