
it's not supported yet, in cloud as RS was only released in v1.3, The work around would, storing the id or another document as attribute in the collection.

For example, if you want relationship between, A -> B
then in collection B
you can attribute name as a_doc_id
and then whenever you create document B
you simply pass doc id of A doolection.

Same goes for fetching, when you fetch B
doc you first fetch doc B
which return A-ID
and then then you send another request to fetch details of A-ID
from A-Collection

cool thanks

a_doc_id would be a string i suppose right?

yap always, every doc -id is String type in appwrite

and each doc-id size is 36

thanks

no worries

[CLOSED] Relationship attribute for appwrite hackathon
Recommended threads
- Realtime Disconnects and Error: INVALID_...
Hi Support, we are still experiencing the issue and we are a subscriber on your platform under the account of charlesbcalague@gmail.com I just want to ask here...
- Collection Permission issue
I am facing issue in my Pro account. "Add" button is disabled while adding permission in DB collection settings.
- Opened my website after long time and Ba...
I built a website around a year back and and used appwrite for making the backend. At that time the website was working fine but now when i open it the images a...
