Hi,
This might have been asked few times, so sorry already, but could not find anything.
Is there a way to create a relation to user in a collection?
Or do I have to store plain ID as text and lookup users table by ID? If that is the case, how can I make some certain values in users to be visible for authenticated users only?
Not for now, as of now you'll need to mimic it by adding user_id field (or set the document ID to the user ID in case of one-to-one) to the collection
As for the visibility for specific user Appwrite got you cover and you can use the permissions module.
Do you know if there will be more native way to do it in the future?
I can't find any feature request on that right now but I think its planned
Recommended threads
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- Update row sheet not loading
After right clicking a row header and click update, the sidebar fails to load (never-ending skeleton)
- DB Relational Table Request
Hi, I'd like to suggest a rewording of the relationships between tables. - Current wording: storeOperatingDays can contain one storeId ...