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
- Rate límit reset
I've made an error in the code by not setting a limit on how much rows should i get per request because i was working with a small db for testing. Last night Iv...
- How to set permissions using the createO...
Hi, I'm trying to create a set of registers in a table using the tableDB.createOperations function, but it seems like it doesnt support/expect the usage of the ...
- Fulltext index creation fails due to Inn...
I'm running a self-hosted Appwrite 1.8.1 instance and encountering an issue when creating fulltext indexes on a collection. **The Problem:** Fulltext index cre...