The prelude in Appwrite's Relationships Documentation states:
*Entities in real-life often associate with each other in an organic and logical way, like a person and their dog, an album and its songs, or friends in a social network.
These types of association between entities can be modeled in Appwrite using relationships.*
However, when I create a relationship attribute in a collection, I see no option to relate the collection to Users. So, I don't see how I can create, for example, a Tasks collection with a many to one relationship with Users.
Moreover, it also doesn't seem to be possible to relate a collection to itself. So, for example, if I wanted to use relationship attributes to model a parent task and subtasks structure in my Tasks collection, I can't because Appwrite doesn't show me the current collection as an option in the dropdown of available collections when I create a relationship attribute.
Also, to support users having friends or similar functionality, it should be possible to also relate Users to Users, but it seems the Users list/collection one gets as people sign up to their app isn't treated as a regular collection at all, so I can't add custom attributes to Users nor relate them to anything.
Am I missing something, or is it really not possible to relate collections to Users and collections to themselves? Because if those two aren't supported yet, then much of what the prelude in the Relationship docs tease with isn't even possible to do with Appwrite's Relationships yet.
Thank you for reading, I appreciate any pointers! :appwriteheart:
Recommended threads
- Import error: appwrite.enums
Hey Appwrite, I am trying to follow along with your documentation to create a relationship attribute in a collection in from python (https://appwrite.io/docs/re...
- Confusion with Client SDK and Server SDK...
Hi guys, this may sound as a stupid question, but I am really at a loss here. I admit I am a novice. I have a simple CRUD web app built on NextJS, where some ...
- No Targets Created For Email OTP Users
The users can sign up no problem, but I just noticed they have no targets, using email and password works though