i need to create a custom attribute like: { "supplier_Name": "Mohammed irfan", "customer_id": "Unique id", "orders":[ { "product_name": "Vacum cleaner", "product_id": "Unique Id" "price": 1000, }, { "product_name": "Handwash Liquid", "product_id": "Unique Id" "price": 10, } ] }
MY DOUBT IS THAT HOW CAN I CREATE THE ORDERS WITH CUSTOM DATA TYPES. KINDLY HELP ME ON THIS.
Create a separate collection and look into docs for relationships
Thanks @Steven it would be great If you share the code in flutter. As I am beginner in this appwrite. Thanks in advance.
It's not really a flutter specific thing. It's database design. The relationship docs can be found here: https://appwrite.io/docs/products/databases/relationships. Make sure to read the rest of the database docs if you haven't already
Thanks for the help @Steven
[SOLVED] Can anyone help me to create a custom module for my project.
Recommended threads
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...