Back

[SOLVED] Can anyone help me to create a custom module for my project.

  • 0
  • Flutter
irfan
3 Dec, 2023, 13:00

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.

TL;DR
User needs help in creating a custom module for their project. They specifically want to create a custom attribute with custom data types for orders. The solution suggested is to create a separate collection and look into the documentation for relationships.
Drake
3 Dec, 2023, 14:14

Create a separate collection and look into docs for relationships

irfan
5 Dec, 2023, 13:21

Thanks @Steven it would be great If you share the code in flutter. As I am beginner in this appwrite. Thanks in advance.

Drake
7 Dec, 2023, 02:14

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

irfan
7 Dec, 2023, 16:54

Thanks for the help @Steven

Drake
9 Dec, 2023, 08:28

[SOLVED] Can anyone help me to create a custom module for my project.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more