How to update string[] property using updateDocument? Does updateDocument supports Query property.
- 0
- Databases
- Web
In the Collection i have addressDetails as string[], basically I want to append the new address into addressDetails[]
let stringAddress=JSON.stringify(data);
this.database.updateDocument(this.DB_ID, this.USERACCOUNT_ID, '6604b6f2bd685e13bb9a', {"addressDetails": stringAddress}).then(result =>{
console.log('Address Updated');
})
also How can i edit the existing addressDetails :string[] attribute?
Or should I use new collection for Address and use relationship between UserAccount and Address Collection?
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...