Skip to content
Back

how think about relationships?

  • 0
  • General
  • Cloud
dei8bit
4 Apr, 2026, 00:03

From what I understand, relationships don't work like foreign keys.

So, two things: Is the way to simulate foreign keys to manually pass references to IDs?

In what situation should I use relationships appropriately?

TL;DR
Developers are seeking advice on how to think about relationships. They are wondering if they should manually pass references to IDs to simulate foreign keys. They also want to know in what situations they should use relationships appropriately. Solution: Relationships in databases are used to establish connections between different tables. They should be used when you want to link data from one table to another based on a related attribute. If you are working with databases, utilizing relationships instead of manually passing references to IDs can help ensure data integrity and improve overall efficiency.
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