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 !
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 Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Seed db
hello there... is this correct way to seed appwrite