Last active
November 29, 2018 23:22
-
-
Save adrianhall/6d4c6f8bfc1beacd1858be9f9261a97f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"version" : "2017-02-28", | |
"operation" : "Query", | |
"query" : { | |
"expression": "#typeName = :typeName", | |
"expressionNames": { | |
"#typeName": "typeName" | |
}, | |
"expressionValues" : { | |
":typeName" : $util.dynamodb.toDynamoDBJson("REVIEW") | |
} | |
}, | |
"filter": { | |
"expression": "#location = :location", | |
"expressionNames": { | |
"#location": "locationId" | |
}, | |
"expressionValues": { | |
":location": $util.dynamodb.toDynamoDBJson($context.source.id) | |
} | |
}, | |
"limit": $util.defaultIfNull(${ctx.args.limit}, 20), | |
"nextToken": $util.toJson($util.defaultIfNullOrBlank($ctx.args.nextToken, null)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment