Back

Query.select on users.list()

  • 0
  • Self Hosted
  • Web
Showdey
4 May, 2024, 06:55

Why doesn't Query.select work on users.list() from node-appwrite? It isn't mentioned in the documentation that it should not. If i do the request without Query it returns me a full list but with it just undefined.

TypeScript
async function listUsers() {
    try {
        return await users.list([Query.select(["$id", "name", "email", "prefs"])]);
    } catch (e) {
        error_handler.setError((e as Error).message);
    }
}```
TL;DR
Developers are facing an issue with Query.select not working on users.list() from node-appwrite. The request returns undefined when Query is used. No solution was provided in the thread.
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