Semih Sezer
Semih Sezer

Reputation: 480

DynamoDB - Update Map Object by appending Another Map Object to it

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!

Upvotes: 0

Views: 2376

Answers (1)

Alexander Patrikalakis
Alexander Patrikalakis

Reputation: 5195

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

Upvotes: 1

Related Questions