Updating the relationship, if I don't pass the previously linked ids then it's getting de-linked
- 0
- Databases
If I don't pass the previously linked IDs then all those linked ids are getting removed.... That seems very dangerous 👀
Hey - any example you can share that maybe you tried?
I mean, it's nested objects 😅
1st req
Beat
--> ["client1ID",]
2nd req
Beat
--> ["client2ID"]
now, first linked client get's removed if you don't pass in end 2nd request
yes same as any array in Appwrite
mm, wish it was to way to mention to not override, that just simply add to existing relationship because imagine having 100+ document?
and in case of 1000+ doc 👀
here's the related issue: https://github.com/appwrite/appwrite/issues/2531
may be I guess we should create seperate method to de-link the document? and let the update simply add to existing relationship...
That could work. Or you can update the relationship from the other side (assuming it's a two way one to many or many to one)
yaa, but in case of many-to-many that be problem
I guess, we should all together have seperate methods for de-linking and quering relationship because trying to fit it into well orgnaize methods might make existing method over-complicated & messy to maintain
or may be it could be other way around, having seperate method of partial update in that case will save rom needing to change in existing update function but simply need to write new one which just do partial addition
Recommended threads
- DB connection | Got timeout reading comm...
When looking at the logs of `appwrite-mariadb` I'm seeing a lot of: ``` 2026-04-09 7:37:28 10 [Warning] Aborted connection 10 to db: 'appwrite' user: 'appwrit...
- Invalid document structure: Unknown attr...
Environment: Dart version: 3.5.1 dart_appwrite: 13.0.0 I’ve already created the database structure using a Dart function. I can create data records using cloud...
- Help with nameservers
I just added our domain, and as per instruction in the page following, it says, "Add the following nameservers on your DNS provider. ..." I want to keep my cu...