Back

using relationships for with specific attributes

  • 0
  • Self Hosted
  • Databases
mario
7 Sep, 2024, 14:56

I have two tables, subjects and boards the boards table has a name and a slug attribute and the name is unique for the subjects table, i want to add a relationship with the board's name attribute but i dont get any way to change it

what can i do? am i missing something

TL;DR
To add a relationship with specific attributes between subjects and boards in your tables, try this: 1. Ensure relationships are set up correctly between the documents. 2. Utilize the experimental relationships feature cautiously. 3. When fetching a board, the related documents should also be fetched automatically. 4. If you want to relate the subjects table with the board's name attribute, the unique attribute needs to be considered. 5. Double-check your setup and ensure you're not missing any steps or configurations.
Steven
7 Sep, 2024, 21:07

Keep in mind, relationships are experimental so I would use them sparingly.

Relationships are between documents. So you would relate a board document to a subject document. Then, when you fetch a board, the related document is also fetched

suraj_markup
10 Oct, 2024, 10:38

how can I add something that has relationship with other document

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more