rare-sapphire
rare-sapphire2y ago

reference to defining relations between collections in appwrite

there is a reference in this page https://refine.dev/docs/advanced-tutorials/data-provider/appwrite/ to creating relations between collections in appwrite, but I don't see a way of doing this explicitly. Is this just done implicitly by naming attributes to be treated as foreign keys with an appended "Id" and the logic handled in refine? is someone able to provide some more detail on the appwrite config for the multitenancy example here: https://refine.dev/docs/advanced-tutorials/multi-tenancy/appwrite/ ?
Appwrite | refine
Introduction
Appwrite | refine
What is Multitenancy?
1 Reply
refine-support-bot
Hi, I am refine support bot :wave:. I am here to help you with your question. I searched for the answer to your question in the refine documentation and found an answer! 🏆
Answer: In the Appwrite Multi-Tenancy guide, relations between collections are handled implicitly by naming attributes to be treated as foreign keys with an appended "Id" and the logic is handled in refine. SOURCES: ./docs/advanced-tutorials/multi-tenancy/appwrite.md

Note: If this is the answer you need, then we are very lucky. If not, please wait for someone from the refine core team or the community to try to help you.