amazon-archives / aws-sdk-unity

ARCHIVED: The aws sdk for unity is now distributed as a part of aws sdk for dotnet:
https://github.com/aws/aws-sdk-net
Other
105 stars 43 forks source link

QueryAsync<T> #83

Closed linithos closed 9 years ago

linithos commented 9 years ago

Hello,

I'm trying to do a QueryAsycn on a Table with a Hash Key and Range Key. But I'm getting an error "Argument can not be null. Parameter name = null".

var search = DBConnect.Context.QueryAsync(hashKey); search.GetRemainingAsync((result) => { List myList = new List(); myList = result.Result; }, null);

I've tried the query on other table with a hashkey only and it works the problem is when the primary id is : hash key and range key.

Any help?

thanks

Lina

karthiksaligrama commented 9 years ago

Hi Lina,

For Hash and range key, you should use

     Context.QueryAsync<T>(hashvalue,Amazon.DynamoDBv2.DocumentModel.QueryOperator,rangevalues)
linithos commented 9 years ago

Thank you. =)