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
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- AppwriteException - Transaction with the...
I am using "node-appwrite" module and I have successfully created transaction id but when passing it to tablesDB.createRow function with some other required dat...
- unlike any other provider, your sites DN...
your nameservers dont work with a funny little CNAME error, which is a weird bug but thats what you get when you try to be the kitchen sink, funny errors.