Is there a way to add items to an array in a relationship?
I am currently trying this where tasks are a One To Many relationship attribute represented as an array
const item = await databases
.updateDocument([DATABASE_ID], [collection_id], [documentId], {
tasks: [taskId]
})
When I try this I only get that item added to the array and previous additions removed.
i dont think adding an item to an array is possible directly atm. you must get the array value, append your item and then update the doc.
Recommended threads
- IP / CIDR For Appwrite Cloud Functions
[I saw this message](https://discord.com/channels/564160730845151244/1330335737954046067) that went unanswered. I have the same question: what IP addresses / CI...
- 🚀 Appwrite Schema & Migration Managemen...
How can we quickly design a database schema and then push it to Appwrite? I'm looking for a workflow that makes it easy to draw or define database structures, ...
- Image transformations
On flutter web, when using image transformations, the results are being cached. When I replace an image, the old version still appears. Is it possible to manual...