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
- AppwriteException: Invalid query: Query ...
```js console.log(typeof interaction.user.id) console.log(interaction.user.id) const user_check = await TablesDB.listRows({ databaseId: "db", ...
- I recently switched to TablesDb. When li...
olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return...
- Database error validating 'min' and 'max...
I keep seeing an error when I try to add a column to a database table within the AppWrite cloud UI. I also see this error when trying to create or update a reco...