dynamodb-oop icon indicating copy to clipboard operation
dynamodb-oop copied to clipboard

Support for updating nested json in dynamoDB

Open mayurizingadeCL opened this issue 8 years ago • 1 comments

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 avatar Jan 10 '17 13:01 mayurizingadeCL

Unfortunately you will have to update the entire root attribute

The library does not support it yet

adrianpraja avatar Jan 11 '17 09:01 adrianpraja