@mac-/dynamo-merge
v2.0.0
Published
Painlessly update nested DynamoDB objects.
Readme
dynamo-merge
Installation
yarn add dynamo-merge # or npm install dynamo-merge --saveUsage
import merge from "dynamo-merge"
const result = await documentClient.update({
TableName: "users",
Key: {email},
...merge(updatedUserAttributes),
})Look at test.js for example use cases and the expected output.
Tests
To run tests, use
yarn test # or npm testLicense
MIT
