Created
November 29, 2018 21:47
-
-
Save adrianhall/268cfe2c126ab6c74d624b9b3d9c1584 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": "2018-05-29", | |
| "operation" : "Query", | |
| "query" : { | |
| "expression": "typeName = :typeName", | |
| "expressionValues" : { | |
| ":typeName" : $util.dynamodb.toDynamoDBJson("FAVORITE") | |
| } | |
| }, | |
| "filter": { | |
| "expression": "#owner = :owner", | |
| "expressionNames": { | |
| "#owner": "owner" | |
| }, | |
| "expressionValues": { | |
| ":owner": $util.dynamodb.toDynamoDBJson($context.identity.username) | |
| } | |
| }, | |
| "limit": $util.defaultIfNull(${ctx.prev.result.limit}, 20), | |
| "nextToken": $util.toJson($util.defaultIfNullOrBlank($ctx.prev.result.nextToken, null)) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment