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
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...