
hello , i have a collection named “clients” and i want theme to have relationship between each others , how can i achieve this ? Thanks

When you create Attributes on your Collection, one of the type options is Relationship

Thank you, but you cant do it with the same collection

That’s correct. Why would you want to?

its an option i need to have on@my project, imagine users can have friends , how can you add the relationship of the same collection?

I see. I think the best way to do it is probably to have a separate Collection “Friends”, which would have a Document for each Friend relationship.

This is more efficient anyway than having one huge Attribute (a user could potentially have thousands of “friends”)

Yea you are right i just didn’t explain it well, i tried it but it didnt work with one way relationship i tried with two ways relationships with new documents « friendship » and it did work , thank you @ideclon
Recommended threads
- 2 Columns still processing since yesterd...
Hey o/ Yesterday (around <t:1758045600:f>), I created a database and added several columns to it. After about 15 minutes, most of the "processing" tags disappe...
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- Row with the requested ID already exists...
I’m hitting a blocking issue creating rows in Appwrite (both from the console and my React Native app). After successfully inserting the first row, every subseq...
