Ive setup relationships in my colllection and its working well with. So how do i fill the relationship attribute from the client side when uploading the document?
If the document you want to create the relationship with already exists then you can just reference the ID of that document, or you can create new documents using a nested format to create the documents you want to have the relationship with at the same time https://appwrite.io/docs/products/databases/relationships#create-documents
so its a collection_id: doc_id
'<REVIEW_ID_1>',
'<REVIEW_ID_2>'
]```
it has to be a list even if i have one relation
Recommended threads
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...