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).
- Am I right?
- How to solve this?
TL;DR
Title: Two-way relationship in Appwrite
Question: How does Appwrite handle cyclic dependencies?
Example: Customer-Shop-Order relationship
TL;DR: When creating an Order and fetching it afterwards, the nested JSON may be missing data due to cyclic dependencies.
1. Correct, the data may be missing in the nested JSON to avoid creating infinite children.
2. To solve this, you can manually fetch the related data using Appwrite's data fetching methods or adjust the data structure to avoid cyclic dependencies.Recommended threads
- cant resume project
Invalid console fingerprint event i try man time
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- general_route_not_found - Auth Guide
If you’ve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...