Skip to content Skip to sidebar Skip to footer

Parse Query On Pointer Column

I've already kind of asked this question, but i'm going to try to be more specific in the hope of being a little clearer. I have a xamarin Android project, using Parse.com as the b

Solution 1:

OK, finally got it. This works:

public async Task getBeaconCat(Int32 minor)
        {
            try{


                var innerQuery = ParseObject.GetQuery("Beacons").WhereEqualTo("minor", minor).Include("CatID").Include("Category");

                IEnumerable<ParseObject> MyFirstResults = await innerQuery.FindAsync();
                foreach (var result in MyFirstResults)
                {
                    var catObject = result.Get<ParseObject>("CatID");

                    var category = catObject.Get<string>("Category");
                    Console.WriteLine ("The category is......... " + category);
                    return category;

                }

            }
            catch{
                Console.WriteLine ("There was a problem fetching data from parse");
            }

        }

Post a Comment for "Parse Query On Pointer Column"