Due to stupid (but unchangeable) requirements it is necessary that a user is in more than 1000 teams. In this particular case there are about 1300 teams. If I want to get all memberships of the user I only get 1000 back. Unfortunately, unlike other functions, I cannot pass queries to increase the limit. How can I get all memberships of the user?
` const { total, memberships } = await users.listMemberships("66a739de0022f7ecbf15");
console.log(total, memberships.length);`
1000 1000
You should be able to pass queries into the listMemberships function?
https://appwrite.io/docs/references/cloud/client-web/teams#listMemberships
Have you tried and it not work?
But I use the Users API and not the Teams API because I need all memberships of a specific user and not all users in a team.
as Kenny suggested, why not use the Teams#listMemberships? It allows passing a userId, this should also allow pagination.
Recommended threads
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...