Rank 5: Hypervisor
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.
Votes
0
Replies
9
Participants
Unknown
Messages
10
Rank 5: Hypervisor
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.
Rank 5: Hypervisor
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.
Rank 5: Hypervisor
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
Rank 2: Process
cool thanks
Rank 2: Process
a_doc_id would be a string i suppose right?
Rank 5: Hypervisor
yap always, every doc -id is String type in appwrite
Rank 5: Hypervisor
and each doc-id size is 36
Rank 2: Process
thanks
Rank 5: Hypervisor
no worries
[CLOSED] Relationship attribute for appwrite hackathon