Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for updating nested json in dynamoDB #32

Open
mayurizingadeCL opened this issue Jan 10, 2017 · 1 comment
Open

Support for updating nested json in dynamoDB #32

mayurizingadeCL opened this issue Jan 10, 2017 · 1 comment

Comments

@mayurizingadeCL
Copy link

Hello,

I am able to connect to dynamoDB, get list of ducments from database. I could update string values in documents as well. If details is string it is working fine.

          DynamoDB
                    .table('user')
                    .where('id').eq(customer.id)
                    .update({
                        "EmailAddress": customer.EmailAddress,
                        "data": details
                    }, function( err, data ) {
                        console.log("555 "+ err )
                        console.log( data )
                });

But How can I update nested JSON, using this "aws-dynamodb" npm module, when details is nested json.

Please let me know.

Thanks,
Mayuri Zingade

@mayurizingadeCL mayurizingadeCL changed the title Suppoert for adding nested json Support for updating nested json in dynamoDB Jan 10, 2017
@adrianpraja
Copy link
Member

Unfortunately you will have to update the entire root attribute

The library does not support it yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants