ios - Complex PFQuery -
i'm working on app users can follow each other. on app there leaderboard show users sorted popularity , date. popularity how many people followed each user recently.
this list of 10 people
i have pfobject called follow. has relationship person , date created.
i'm little perplexed how can create query sorts follow object date. example, need sort had followers today. if there one, next person need person new followers yesterday. after may person had votes last week. , on...
any suggestions appreciated.
read part called query constraints here: https://parse.com/docs/ios/guide#queries
it describes how sort queries multiple criteria.
if doesn't quite work, store objects in arrays , find highest counts way.
Comments
Post a Comment