Back

Relationship referencing and reading values of relationship attributes

  • 0
  • Databases
  • Web
  • Cloud
themac
18 Dec, 2023, 16:26

When using two way, one to one relationship between collections, what would be used as reference for the value of the relationship variable. I've set the display name to a string attribute, would it be the document ID instead. In the context of user data management.

TL;DR
In a two-way, one-to-one relationship between collections, the reference for the value of the relationship variable would typically be the Document ID. This is especially true in the context of user data management.
ideclon
18 Dec, 2023, 16:39

Do you mean what would you put in that field? Then yes, it would be the Document ID

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