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
- Scheduled works locking the entire Maria...
I have a scheduled function and apparently that or something is locking the entire MariaDB database and Appwrite is giving MariaDB errors. This error persists e...
- Need help to create a wrapper which let ...
I’m looking for help setting up Appwrite properly on a VPS so I can build a self-hosting wrapper around it. The goal is to provide a Linux executable that allow...
- Use Limits
I need urgent help, i use appwrite as a chat function for my website and my mobile android application, but recently, for the past 3 months, my database reaches...