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
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...
- Index for combination of columns
How am i suppposed to apply index so that combination of two columns alwasy remain unique in appwrite table though console
- Broken Flutter SDK >=24.1.0
Row.fromMap now does: ``` data: Map<String, dynamic>.from(map["data"] ?? {}) ``` But Appwrite Cloud TablesDB row responses return custom row columns flattene...