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
- Our Appwrite organization is suspended
Please give support regarding this , no app is working now , please solve my issue and give support , no one is replying in message section or email.
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...