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
- Migration from Self-Hosted to Cloud seem...
Hello, I'm trying to migrate from my Self-Hosted Appwrite instance to Cloud, and can't figure out what's going wrong. - If I initiate the migration from Cloud...
- custom domain on self host Appwrite
I am having a issue, i am using self host version of appwrite at my custom domain (appwrite.example.com), but when i tried adding a custom domain (project1.exam...
- 1.9 Upgrade Issues (Creating Logs Table)
The upgrade seemingly completed without a hitch, I almost gave the credit on how seamless it was, until appwrite refused to come back up and is now completely b...