Back

Trying to assign a two way relationship to a new document

  • 0
  • Web
  • Cloud
IsItBathTime
31 Jan, 2024, 02:48

Hi when I createDocument I have a relationship attribute called counter and a document is being created there linking to my main parent document but the parent document isn't referencing it. How I do that?

TL;DR
Summary: The developer is having trouble creating a two-way relationship between a parent document and a child document. The child document is referencing the parent, but the parent is not referencing the child. Solution: To establish a two-way relationship, the developer needs to ensure that the parent document references the child document. This can be done by updating the code to include a reference to the child document within the parent document's attributes or fields.
IsItBathTime
31 Jan, 2024, 02:51

It seems to only reference it in the child but the parent is n/a

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