mysql - Parse API for Php -


i working on 1 application using parse api in php. scenario having 3 tables named user, kids , journalentry. user has many kids , kids has many journal entry. kids table has user pointer , jounralentry has 2 pointers named kidsid , userid. when try data journalentry table, taking time because of 2 queries fire. first query fetching data kids table , second 1 journalentry table on basis of first query's objectid.

is there way in parse api can directly fire 1 query following:

select * jounralentry kids.objectid = jounralentry.kidsid , user.objectid = jounralentry.userid ? 

you can use relational queries achieve that

curl -x \   -h "x-parse-application-id: " \   -h "x-parse-rest-api-key: " \   -g \   --data-urlencode 'where={"kidsid":{"$inquery":{"where":{replace_with_your_query_here},"classname":"kids"}}}' \   https://api.parse.com/1/classes/jounralentry 

please correct wrong field in query.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -