Last active
December 19, 2018 17:19
-
-
Save adrianhall/fd00dbb5b8244bb572ee22f27c7673ac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set($keys = []) | |
#foreach($id in ${ctx.prev.result.ids}) | |
#set($key = {}) | |
$util.qr($key.put("typeName", $util.dynamodb.toString("LOCATION"))) | |
$util.qr($key.put("id", $util.dynamodb.toString($id))) | |
$util.qr($keys.add($key)) | |
#end | |
{ | |
"version": "2018-05-29", | |
"operation" : "BatchGetItem", | |
"tables" : { | |
"devRestaurantReviews": { | |
"keys": $util.toJson($keys), | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment