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
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...