
I'm creating a food ordering website for businesses.
I'm having issues with the relations on my database
I attached the attributes for the collections I'm having issues with. I've mostly worked with non relational databases like mongo but I believe I'm using the correct "standards" for this kind of database (correct me if I'm wrong)
APP CONTEXT/ BACKGROUND
- Each user can be either be a System Admin, Restaurant, Business, or Worker
- When I want to grab the Restaurant from a user I just get the logged user and travel through its contents made by the relations to get the Restaurant it owns and then get the orders of that restaurant. (Maybe this is a bad practice idk)
- When I try and display that info on the console I'm not getting the Restaurant the order belongs to and neither the Business that made the order, even though they are on my attributes and my schema
Attached the result of my console log at the end

Is it ok for me to just store the Business and Restaurant name in the order or is that bad in the long term?
Recommended threads
- 2 Columns still processing since yesterd...
Hey o/ Yesterday (around <t:1758045600:f>), I created a database and added several columns to it. After about 15 minutes, most of the "processing" tags disappe...
- 503 Timeout when Updating or Upserting D...
Hey I’m running into an issue when trying to update or upsert a row in Appwrite. The request hangs for a while and then throws this error: ``` AppwriteException...
- Row with the requested ID already exists...
I’m hitting a blocking issue creating rows in Appwrite (both from the console and my React Native app). After successfully inserting the first row, every subseq...
