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?
you have join table , fetch required data.
take reference here.
Comments
Post a Comment