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
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Rec'd a "phishing" email that apparently...
I received an email attempting to convince me that my password expired - and the link wanted to send me to an appwrite instance: (https://updating-projects-ads....
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...