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
- `notContains` Query not available
I have a collection with documents that have a `userIds` attribute containing an array of string values. I want to list these documents by excluding the ones th...
- Appwrite permissions
Im trying to implement a liking system, and i dont want the data to be public, but it says user is unauthorized even when the id is right ``` try { awa...
- Should I create a users table?
When building an application using appwrite authentication, should you even create a users' table? or just add a user id attribute to the collection you want to...