iphone - How to acces data in a relation using parse.com -
i using parse.com, , have in data browser following tables: user (the default user table) , studyyears. in user table, have multiple users. have added user table column of relation type refers table called studyyears. studyyears table contains string column called year.
how can make query user values year column of studyyears table?
i hope can understand trying get. in advance!
http://blog.parse.com/2012/05/17/new-many-to-many/ states:
when fetch place object, objects in relations won’t fetched, huge win relationship large number of objects. without fetching objects in relation, can add objects relation using add:. if wanted fetch objects in relations, like:
pfrelation *relation = [place relationforkey:@"likes"]; pfquery *query = [relation query]; [query findobjectsinbackgroundwithblock:^(nsarray *results, nserror *error) { // results contains people liked sid's bbq. }];
Comments
Post a Comment