Let me preface this question by saying that I'm very new to coding with Swift and in iOS in general. I've got some experience in Java/Android and am starting to work with iOS as well now.
I need to query a dynamodb table with enough data in it that Amazon paginates the results (I think the limit is 100kb). Using the limited examples for AWS/Swift I am able to query that table but only successfully retrieve the first page of data. My question is how to get that 2nd, 3rd, etc page of data. See code below
let queryExpression = AWSDynamoDBQueryExpression()
queryExpression.keyConditionExpression = "venue_event = :ev"
queryExpression.expressionAttributeValues = [":ev" : "event"]
dynamoDBObjectMapper.query(Event.self, expression: queryExpression).continueWithExecutor(AWSExecutor.mainThreadExecutor(), withBlock: {(task:AWSTask!) -> AnyObject! in
let results = task.result as! AWSDynamoDBPaginatedOutput
for r in results.items{
print (r)
}
return nil
})
I've noticed that 'results' has a lastEvaluatedKey variable and loadNextPage method. However I can't seem to get either to give me the function I'm looking for
Thanks in advance for the help

