hi , i am having a troubble when a i try to make this query using WhereEqualTo() i am receiving all the players and not only the object thant i am consulting.
this is the code:
public async void retrivingscore()
{
ParseQuery<ParseObject> query2 = ParseClient.Instance.GetQuery("gameScore");
string name = "sean";
string key = "playerName";
query2.WhereEqualTo(key, name);
query2.FindAsync().ContinueWith(t =>
{
IEnumerable<ParseObject> objetogame = t.Result;
if (t.IsFaulted || t.IsCanceled)
{
Debug.Log("t can not be find it");
}
else
{
Debug.Log("encontrado");
foreach (var obji in objetogame)
{
cantidadrevicibida++;
Debug.Log(obji.Get<string>("score"));
}
}
});
}
can you helpme? why i am retriving all the players and not only the player with name that i am consulting?