👟 Reproduction steps
Go to https://appwrite.io/docs/server/teams?sdk=nodejs-default#teamsCreateMembership and look at the example, the order of parameters are:
- Team ID
- Email
- Roles
- URL
But when using the SDK on my project, the order is actually
- Team ID
- Roles
- URL
- Email or User ID or Phone Number
👍 Expected behavior
I was expecting the documentation and the SDK to be consistent.
Actually - I would prefer if the functions just accept an object with the parameters as properties:
await teams.createMembership({
teamId: TEAM_ID,
userId: USER_ID,
email: EMAIL,
url: URL,
roles: []
});
This way, the order in which you provide the parameters do not matter at all.
👎 Actual Behavior
The SDK and the docs aren't consistent.
🎲 Appwrite version
Version 1.3.x
💻 Operating system
Linux
🧱 Your Environment
"node-appwrite": "^9.0.0",
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
👟 Reproduction steps
Go to https://appwrite.io/docs/server/teams?sdk=nodejs-default#teamsCreateMembership and look at the example, the order of parameters are:
But when using the SDK on my project, the order is actually
👍 Expected behavior
I was expecting the documentation and the SDK to be consistent.
Actually - I would prefer if the functions just accept an object with the parameters as properties:
This way, the order in which you provide the parameters do not matter at all.
👎 Actual Behavior
The SDK and the docs aren't consistent.
🎲 Appwrite version
Version 1.3.x
💻 Operating system
Linux
🧱 Your Environment
"node-appwrite": "^9.0.0",👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?