sdk-for-node
sdk-for-node copied to clipboard
🐛 Bug Report: Query.select on users.list() not working
👟 Reproduction steps
async function listUsers() {
try {
return await users.list([Query.select(["$id", "name", "email", "prefs"])]);
} catch (e) {
error_handler.setError((e as Error).message);
}
}
👍 Expected behavior
Appwrite returns Users without unwanted attributes
👎 Actual Behavior
The function returns undefined
🎲 Appwrite version
Version 0.10.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- [X] I have read the Code of Conduct
Hi @NobodyExceptHim, Thanks for opening the issue.
The $queries array in the users.list method are pagination and filtering only.
Select is included the selections queries which is not available for the users.list method.