Back

Recursive Relationships

  • 0
  • Databases
Expo
13 Nov, 2023, 18:47

I'm trying to make a recursive two-way relationship in Appwrite's DBs for a reddit-alike reply system; ie you can reply to a reply. The issue is, the relationship menu doesn't let me select itself as the Related Collection. Is there any way to do this? Does a recursive relationship break Appwrite?

TL;DR
There is currently no support for recursive relationships in Appwrite's DBs. You are unable to select the same collection as the related collection in the relationship menu. It is unclear if recursive relationships will be added in the future.
Drake
13 Nov, 2023, 18:52

correct...for the moment, you can't have a relationship to itself

Expo
13 Nov, 2023, 18:55

any plans for it being added in future?

Drake
13 Nov, 2023, 20:54

we haven't talked about this explicitly

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