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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...