I am currently working on one application which is using parse API in php. The scenario is I am having 3 tables named User, Kids and JournalEntry. User has many Kids and Kids has many Journal Entry. So its like Kids table has User Pointer and JounralEntry also has 2 pointers named KidsID and UserID. When I try to get the data from the JournalEntry table, it is taking too much time because of the 2 queries which I fire. First query for fetching the data from the kids table and second one is for the JournalEntry table on the basis of first query's objectid.
Is there any way in Parse API that we can directly fire one query like following:
SELECT * FROM JounralEntry
WHERE Kids.objectId = JounralEntry.kidsID AND User.objectId = JounralEntry.UserID ?