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

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -