Back

Searching for relationships parent document

  • 0
  • Databases
Showdey
4 Jan, 2024, 10:41

Lets say i have only one document which is related Many to One. I want to find which document contains my child doc having it's $id. Does it require Query on Array which is not yet supported?

TL;DR
The user was looking for a way to search for parent documents based on the ID of a child document. They realized they had overlooked the "two-way" relationship option. They were wondering if a query on an array, which is not yet supported, would be necessary. The solution is to utilize the "two-way" relationship option to easily find the parent document based on the ID of the child document.
Showdey
4 Jan, 2024, 10:46

Oh nvm; i've been missing "two-way" relationship option this whole time

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