Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Query.select on users.list() not working #85

Open
2 tasks done
NobodyExceptHim opened this issue May 4, 2024 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@NobodyExceptHim
Copy link

NobodyExceptHim commented May 4, 2024

馃憻 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?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@NobodyExceptHim NobodyExceptHim added the bug Something isn't working label May 4, 2024
@byawitz
Copy link
Member

byawitz commented May 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants