Back

How to list documents of specific user from database

  • 0
  • Cloud
Abdul Aziz
7 May, 2024, 19:56

I am learning appwrite. When I made a todo app, all todos entered in collection are displayed irrespective of which user entered todos. There are no specific parameters mentioned in 'listDocuments' method that can filter the todos as per specific user(user_id). How to see the data entered by each specific user

TL;DR
To list documents of a specific user from the database using Appwrite, you need to set collection and document level security. This ensures that users can only see the todos they created. Adjust the settings to filter todos by user_id when using the 'listDocuments' method in the todo app.
Samiullah
7 May, 2024, 19:59

Well you can set collection and document level security on, such that users can only see those todos which they created not from all other users.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more