![](https://cdn.discordapp.com/avatars/291992695616962561/4fbc417001a159cf6bcc2a59ccc200c9.webp)
hello ! i guess this is not currently possible ?
for example to just database.updateDocument with {comments: ['newid']}
will overwrite comments with only newid and remove the existing relation. is there a way to just push a new one ? Comments is a one to many (one parent, multiple comments).
currently the only way i found it to before get the whole document, extract a list of $id from the comments, and include them in the updateDocument ? this require to get the whole document beforehand.
thanks !
![](https://cdn.discordapp.com/avatars/291992695616962561/4fbc417001a159cf6bcc2a59ccc200c9.webp)
especially if the parent is large querying it whole every time (relationship don't support select'ing only them afaik) is not ideal
Recommended threads
- How to generate a database-setup script ...
I've written a vue.js webapp with appwrite-cloud-db (including relations) and everything works just perfectly! Now I want to release this webapp as an open sou...
- Issues with storage/database adding func...
Hi, I`m working on a register form where I need to upload a document to a storage as well as creating a new document in my database. For some reason I get an ex...
- Solved
Hello everyone! 👋🏻 I just created an attribute and it's stuck on "processing" for a longer period of time. There is no option to delete the attribute (which ...
![](/images/bgs/pre-footer.png)