Parse.com Query On Pointer Value
I'm using Parse.com for my android apps database. In short I'm querying class A that has a field pointing to class B. If I query class A and include class B is there anyway I can
Solution 1:
Here is a possible solution:
Create a ParseObject from the type of your table: ParseObject time = new ParseObject("Date");
Then get the ParseObject from the result: time = result.getParseObject(pointer_field);
Now you can pull from time
any field that it has just as you would do it normally, for example: time.getString("some_field")
.
You may also need to include: query.include("pointer_field")
.
Solution 2:
According to the Parse Community:
Instead of dot notation in whereKey:, you would use whereKey:matchesKey:inQuery: or whereKey:matchesQuery:.
Post a Comment for "Parse.com Query On Pointer Value"