1 Answer
- Newest
- Most votes
- Most comments
0
Okay cool, so basically the issue was not with the structure of my request but the actual processing of my queryasync. Whereas I was printing the info before the final key was evaluated now I called my print method after the final key was evaluated.
Client.QueryAsync(request, (result) => {
if (result.Exception == null)
{
//previous spot for the foreach loop and the print method.
lastKeyEvaluated = result.Response.LastEvaluatedKey;
if (lastKeyEvaluated != null && lastKeyEvaluated.Count != 0)
{
foreach (Dictionary<string, AttributeValue> item
in result.Response.Items)
{
PrintItem(item);
}
Query(lastKeyEvaluated);
}
else
{
Debug.Log("last one");
}
}
else
{
Debug.Log(result.Exception);
}
});
answered 3 years ago
Relevant content
- asked 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago