0

I want to update a Map Object in DynamoDB by adding another map object to it.

Here they add a single key value pair to a map. I want to add multiple key value pairs to a map in one request. There should be something like map_append similar to list_append. How can I do this? I went through the docs but could not find anything similar.

Thanks in advance!

1 Answer 1

1

Just use multiple SET update expressions separated by commas, following the example of the question you cited. SET map.#number1 = :string1, map.#number2 = :string2, map.#number3 = :string3

Sign up to request clarification or add additional context in comments.

1 Comment

thank you! such a simple solution and it works like a charm :)

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.