javascript - Parse timeline many to many -


i'm building parse app in javascript.

for structure have following tables ads pic (many point ad) activities (many point ad)

so ad can have many pics , many activities

now want retrieve ads pics , activities included ad object not link (point) these objects.

i managed working in following way:

  • retrieve ads (loop)

--> retrieve pics adid

--> retrieve activities adid

this not seem best way since involves lot of queries, steer me in direction can use 1 or 2 queries?

screenshot 1 screenshot 2

you have join table , fetch required data.

take reference here.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -