Skip to content

Painlessly update nested DynamoDB objects

License

Notifications You must be signed in to change notification settings

yknx4/dynamo-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynamo-merge

Build Status NPM Version

Installation

yarn add dynamo-merge # or npm install dynamo-merge --save

Usage

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 test

License

MIT

About

Painlessly update nested DynamoDB objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published