
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
- A feature/Fix request
Whenever I use Appwrite then to see the items of document I've to click "columns" option and select those items that I want to see then if I refresh browser/pa...
- Collections not showing for relationship...
I am updating one of my databases. I have removed the majority of collection and started adding new collections. The new collections do not appear in the drop d...
- Error: The document data is missing. Try...
I am not able to create any document on some of the collection/ DBs. As I can see many of us facing the same issue, need a quick resolution from the Appwrite Te...
