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.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
how can I add something that has relationship with other document
Recommended threads