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
- [SOLVED] Appwrite Cloud and FRA cloud se...
Can anyone estimate how long this will take to resolve? I am checking status here https://status.appwrite.online/
- How to use Operator.arrayAppend on a rel...
Hi, is it possible to use any operator on a relationship column? I have a One to Many relationship column on a table and I would like to add entries to the colu...
- Terraform tablesdb_column type inconsist...
Hi, I am trying out the new terraform provider for appwrite that was introduced a few weeks back. As a first step I wanted to import our existing databases into...