Back

How would I create a following relationship between users for a social media website

  • 0
  • Databases
bolar pear
10 Jul, 2024, 20:10

I'm trying to wrap my head around how I can create a Follows collection that has relationships to a User collection for follower and followed, but I can't quite grasp it. My alternative thought is to just use user_id strings, but I would prefer to use relationships. Any thoughts?

TL;DR
Developers want to establish a following relationship between users for a social media site. They are considering creating a Follows collection with relationships to a User collection but need help understanding it better. An alternative idea is to use user_id strings instead. Solution: One suggestion is to indeed create a Follows collection with fields for follower and followed to establish relationships between users. This approach can provide more flexibility and scalability in managing the following relationships.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more