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
- SSL Certificate Failure - Using Appwrite...
When we attempt to apply our custom domain to our appwrite site, we consistently receive the following error. [23:44:49] Processing SSL certificate issuance. ...
- Regarding Rate Limits
Hello, I am a student engineer who built an internal website for my university club using AppWrite. My club currently has around 500 members, and when I recent...
- Error trying to deploy functions from CL...
✗ Error • on-auth-create (6a00b2ab000c9ce2949b) • Server Error ✗ Error: No functions were pushed. Prject ID: 69ffe0270033a4ac420a