
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
- Upgrading Appwrite 1.7.4 → 1.8.x: What H...
I'm currently running a self-hosted Appwrite v1.7.4 instance that still uses the old Collections/Documents database model. I noticed that starting from v1.8.x,...
- File tokens regenerate each page reload
Hello, on appwrite 1.7.4, when I create a file token via the API Tokens(appwriteAdminClient)#createFileToken I get a secret, then when I check in the console t...
- CSV Import Shows Success but Data Not Ap...
I tried importing a CSV file into my PRODUCTS collection. The dashboard shows the message “Import to PRODUCTS completed successfully,” but no data appears in th...
