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
- I recently switched to TablesDb. When li...
olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return...
- Database error validating 'min' and 'max...
I keep seeing an error when I try to add a column to a database table within the AppWrite cloud UI. I also see this error when trying to create or update a reco...
- Anyone manage to get a slack-bot working...
I'm trying to setup a bot the send and retrieve slack messages to a chat in my site. I've failed with SSE and appwrite functions soo far... i'll trying polling ...