Here is the code:
let users = new Users(client)
let userList = await users.list()
log(userList)
log(userList.users)
log(userList.users.length)
log(userList.users.map(user=>user.$id))
The output however is
{"total": 201, "users": [{$id: .......
[{$id: ........
25
[........
As you can see, the total is 201 but userList.users.length = 25
I am executing this in cloud in functions
I believe, it limits to 25, How can i bypass this limit ?
does anyone know ?
Default query limit is 25, that's why you don't get more than 25 elements
So you need to pass a query like this:
const promise = users.list(
[
Query.limit(300),
]
);
Recommended threads
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...
- Bug: TOTP MFA verification always fails ...
*Bug: TOTP MFA verify always returns `user_invalid_token` (Cloud 1.8.1, Frankfurt)** Project ID: `68dd48440003e537d849` SDK: `appwrite@18.2.0` (also tested wit...
- SSL Certificate Issuance Failed
When we first deployed our site using appwrite and a custom domain everything was working, but it seems like the SSL certificate never got renewed. I tried dele...