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
- Unable to create Sites or Functions with...
Heya, I was looking at the appwrite documentation for Sites API with the server api: https://appwrite.io/docs/references/cloud/server-nodejs/sites I can’t fin...
- Index for combination of columns
How am i suppposed to apply index so that combination of two columns alwasy remain unique in appwrite table though console
- Broken Flutter SDK >=24.1.0
Row.fromMap now does: ``` data: Map<String, dynamic>.from(map["data"] ?? {}) ``` But Appwrite Cloud TablesDB row responses return custom row columns flattene...