How is it possible create Followers feature by creating one-many relation? I don’t get it. Don’t i need a new Table (many-many) to get this scenario?
Right now i have already added a “following” property on the BackendlessUser. That was easy. So a user can follow others and easily retrieve his/her following users. But how can a user view his/hers followers? If i add another property (array) called “followers” on BackendlessUser, then how does other uses put them selves in it? I guess currentUser is not allowed to put “himself” in another users property? Or am i overthinking this one?
If you add “followers”, then the app could update the property at the same time when it adds the user to the “following” property. User would not put himself in it, but your app could.
It would work the same way as with the “followers”. You add user A to the “followers” collection of user B and update B. Then you add B to the “following” property of user A and update user A. You’d make two “update” calls, one for user B and another for user A.