I have array attribute in one collection , how i can add and delete any element in this attribute
- 0
- Android

I have array attribute in one collection , how i can add and delete any element in this attribute with just one update call .

It isn't possible with just one call, yet. For now, you need to fetch the document, manipulate the array as you want, and send it back.

Related issue. Make sure to 👍 https://github.com/appwrite/appwrite/issues/2531

for that we have to do 3 calls one by one

first i will upload one document , then we will get that id , then we will get arrays documents and then add new id to this array , and then we have to update this

yep so you do this:
getDocument
orlistDocuments
(with a query)- change things in the array as needed
updateDocument

2. get Document and get array
3. add document id in this array
4.update document

what do you mean by this:
- save document and get id

just fetch the document, get the attribute and update it as needed, then run updateDocument

yes thats wht i do

when i query any collections with Query.equal("name", ["id1","id3","id2"]) , is it possible that i will get all document in order according to this array i passed in query
Recommended threads
- Flutter OAuth2 Google Login – Redirect I...
i tried implementing OAuth2 Google Login in my app, and it works fine for the most part, the problem am facing is when i chose a google account to sign in/up wi...
- Cannot use Google Oauth in my Project
I tried to use Appwrite Google Oauth Provider in my app but had some troubles. I receives this error no matter what: error or success: 2025-09-21 18:50:33.845 3...
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
