-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Labels
bugSomething isn't workingSomething isn't workingproduct / docsFixes and upgrades for the Appwrite Docs.Fixes and upgrades for the Appwrite Docs.
Description
👟 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
- 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?
- I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- I have read the Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingproduct / docsFixes and upgrades for the Appwrite Docs.Fixes and upgrades for the Appwrite Docs.