Resonate icon indicating copy to clipboard operation
Resonate copied to clipboard

Scope to Implement Follow/Unfollow Feature in the App

Open puneethkumar18 opened this issue 8 months ago • 1 comments

🚀 The feature

Description:

Currently, the app does not have a Follow/Unfollow feature. There is space to implement this functionality by introducing a new collection called users-data in Appwrite. This collection will store follow relationships, keeping the users collection separate from additional metadata.

Proposed Implementation: • Create a new users-data collection with the following attributes: • user_id → (String, Required, Unique) → The ID of the user. • followers → (Array of Strings) → List of user IDs who follow this user. • following → (Array of Strings) → List of user IDs this user follows. • Implement backend logic to: • Follow a user → Add the target user’s user_id to the following list of the current user and add the current user’s user_id to the followers list of the target user. • Unfollow a user → Remove the target user’s user_id from the following list and remove the current user’s user_id from the followers list. • Check if a user is following another user • Retrieve the followers and following lists

Motivation, pitch

✅ Separation of Concerns – The users collection remains focused on authentication, while users-data handles social interactions. ✅ Scalable – Easier to manage and optimize queries as the number of users grows. ✅ Better Query Performance – Fetching user metadata separately reduces unnecessary data retrieval.

Next Steps: 1. Create the users-data collection in Appwrite. 2. Implement API functions to update and retrieve follow relationships. 3. Integrate follow/unfollow functionality in the UI.

puneethkumar18 avatar Mar 31 '25 04:03 puneethkumar18

@Aarush-Acharya pls check my approach to implement this feature , if you are with it Please assign this issue to me. give me feedback so I can start working on!

puneethkumar18 avatar Mar 31 '25 04:03 puneethkumar18

Closing as duplicate of #511

M4dhav avatar Aug 30 '25 09:08 M4dhav