
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
- Invalid Document structure
I have a database with a collection with the next atributes: - Racha [Integer] - Monedas [Integer] When I try to change the value of this fields in appwrite I'...
- Session deletion for 'current' fails on ...
I want to delete the user's current session via the client side. This is my full function: ```js export const deleteUserSession = async () => { try { ...
- Issue with create collection button.
i can't find the create collection button. instead of that create tables is appearing.
