using c#, the code is like this
DynamoDBContext context = new DynamoDBContext(client, new DynamoDBContextConfig() { TableNamePrefix = "lalala" });
QueryFilter filter = new QueryFilter();
filter.AddCondition("Userid", QueryOperator.Equal, "hashkeyvalue");
QueryOperationConfig queryConfig = new QueryOperationConfig
{
Filter = filter,
Select = SelectValues.AllProjectedAttributes,
Limit = 1,
IndexName = "Userid-UpdatedAtTimestamp-index"
};
try
{
var result = await context.FromQueryAsync<IAPRecord>(queryConfig).GetRemainingAsync();
int ccc = result.Count;
}
catch (Exception ex)
{
throw new ArgumentException(ex.Message + ex.InnerException);
}
and ccc should be 1 but now it equal to the whole set as if the Limit=1 doesn't exist.
Need helps!!