When i add second userId into list it will update the last userId. But I want to add new userId into List How i can achive that ?
Yo will need to create a function
And instead of creating a document directly with the SDK, you will need calling from your client the function, and send the payload with the corresponding data
You can get the userID from the one who triggered the function with a variable: https://appwrite.io/docs/functions#functionVariables
Concretely APPWRITE_FUNCTION_USER_ID
@Nikunj Panchal 🌿 do you need additional information?
Recommended threads
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...