Hi everyone. I am new in Appwrite. i want to store Dishes Menu inside Each Restaurant item. Please Guide me 💕
There are two main approaches here. The first way you could do this is using relationships (although they are an experimental feature). This link should walk you through understanding and using relationships in your projects https://appwrite.io/docs/products/databases/relationships
The second method, and my preferred way of doing it at the moment, is to simply store the IDs of the documents in a string array and then fetch the documents separately. I have found this to have better performance when dealing with a large amount of data than using relationships.
@Ryan thanks. Can you Send me an example of the Second Approach ?
Recommended threads
- SSR share session to client using custom...
Hi, so I was trying to get a hang of using SSR and using realtime updates in the same time which is done easiest if you have a custom domain in Appwrite and as ...
- Custom Domains with Cloudflare for SaaS ...
Hi! I'm using Appwrite Cloud Sites with Cloudflare for SaaS for multi-tenant custom domains. Problem: Custom domain: donate.pekeetong.my → CNAME to sites.dono...
- [SOLVED] Get Relations when using Tables...
Hi there, I have a table containing a relation column with a one-to-many relationship to another table. When Using TablesDB.GetRow in "node-appwrite" i get all ...