2

I have a table in AWS DynamoDB, using dynamoose for querying from NodeJS.
An item structure is like:

{
    name: 'x',
    gmail: '[email protected]',
    mob: '987654321',
    Friends: [ {name:'a'}, {name:'b'} ]
}

I need to update the array 'Friends' such that when adding a new array of friends like below

[ {name:'a'}, {name:'b'}, {name:'c'} ]

it should add non existent element only!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.