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
- Many2Many loading, not receiving list
Hi everyone! Im having a bit of trouble while editing single rows in the DB. When selecting a value of my many2many it keeps loading, see screenshot. On some ...
- Appwrite Python SDK Keeps returning the ...
So I have a couple services, one is a scheduling engine responsible for fetching data from a database and launching a containerized micro service to process tha...
- SSR Auth with Tanstack Start requires ha...
I followed the Next.js guide for SSR Auth on https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1 I tried to replicate it for Tanstack Start. However, on...