Back

List more than 100 users

  • 0
  • Users
  • Self Hosted
Baudouin Arbarétier
7 Mar, 2023, 17:07

Are there no ways to list 100+ users in the server sdk ? I use a while loop with a cursor for my documents. Is it not possible for users ? Thanks !

TL;DR
The user is asking if there is a way to list more than 100 users in the server SDK. They mention using a while loop with a cursor for documents and ask if the same approach can be used for users. They suggest adding a "count" function on queries without a cap of 100, similar to Firebase. The user is looking for a solution to list more than 100 users. Solution: At the moment, the only way to list more than 100 users is to use the query pagination approach mentioned in the documentation. There is no built-in "count" function without a cap of 100 like Firebase.
Baudouin Arbarétier
7 Mar, 2023, 17:14

It would be so handy to get a "count" function on queries without 100 cap, like Firebase has

rafagazani
7 Mar, 2023, 18:24

currently the only way is the one you mentioned, using the query to do pagination and limit of 100 https://appwrite.io/docs/server/users?sdk=nodejs-default#usersList

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more