appwrite / appwrite/appwrite

🚀 Feature: Add a Membership ID parameter on creating membership

Open
#7,193 7 comments 3 reactions 1 assignee Claimed by @stnguyen90 View on GitHub
enhancement product / auth
Dominant language
TypeScript
Stars
57.4k
Forks
5.7k
Avg merge
14h 50m
Merged PRs (30d)
276

Description

### 🔖 Feature description

Currently, the createMembership api, does not provide a id parameter here. It seems that it automatically use the unique() to create a membership ID. so can we add a id parameter on createMembership api method.

### 🎤 Pitch

In my use case, I manage an org collection and an org-member collection. My approach for assigning roles to each member led to the creation of the org-member collection. When creating an org-member, a function triggers a call to Appwrite's createMembership API. I aim to reference the membership ID from the createMembership API to the ID of the document in my org-member collection. This strategy simplifies the process, as it avoids the need for additional queries to retrieve member information.

### 👀 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?

- [X] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.