#[relationships] Two-way relationship

2 messages · Page 1 of 1 (latest)

fierce sigil
#

How does Appwrite behave in cyclic dependencies?

Consider following (is for multi tenant):
Customer(User, Address, Shop)
Shop(List<Customer>)
Order(Customer, Shop)

What is the output, if I create a Order and fetch it afterwards.

In my case, I think in the nested json there is the data missing (otherwise it would create infinity children).

  1. Am I right?
  2. How to solve this?
abstract dock