Back

Appwrite - DAO / DTO feature

  • 0
  • Databases
  • Functions
  • Cloud
Leszek Czarnecki
3 Mar, 2025, 18:02

Hello, I have a question about data selection. Typically, this is achieved using solutions like DAO and DTO, but I’m wondering how to accomplish the same in Appwrite.

My case is as follows: I have a "Users" document in the database, which functions as a classic user data table. There are two scenarios:

  • Regular users can view other users' data, but only in a limited scope.
  • Admins have access to all user data. I’ve searched the documentation and found references to GraphQL, but I’m not sure if that’s the only available option. Could someone clarify this? Thanks!
TL;DR
Developers are asking how to implement DAO / DTO feature in Appwrite to manage data selection for users. They need to differentiate between regular users and admins in accessing user data. The documentation mentions GraphQL, but they are unsure if it is the only solution.
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