appwrite / appwrite/appwrite

🚀 Feature: Add a Membership ID parameter on creating membership

Aperta
#7,193 7 commenti 3 reazioni 1 assegnatario Rivendicata da @stnguyen90 Vedi su GitHub
enhancement product / auth
Lingua principale
TypeScript
Stelle
57.4k
Fork
5.7k
Merge medio
18h 32m
PR unite (30g)
304

Descrizione

### 🔖 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)

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.