
Hai i am new with appwrite i want to create a structure like
{ "user_name": "test", "age": 100, "ishuman": false, "orders": [ { "order_id": 90909, "item_name": "alien food", "item_price": 789 } ] }
i cam create others attributes but how to create orders attribute

You should create an orders collection

I have already created but i can add it which attribute to choose ?

What do you mean?

You can't have an attribute inside an attribute

Alternatively you can have relationships between collections or use foreign keys

{ "user_name": "test", "age": 100, "ishuman": false, "orders": [ { "order_id": 90909, "item_name": "alien food", "item_price": 789 } ] }
so this is not possible ?
Recommended threads
- [Bug] `collection` is an unusable attrib...
**Reproduction** - Create a string attribute called `collection` in Appwrite databases - Create a new document using the `node-appwrite` SDK and assign any str...
- Session Secret not generating
Hello, im trying to use otp verification in my next js project but appwrite server is sending empty secret. i am attaching code where the error is occuring and ...
- GitHub Education Pack not activating App...
Hello Appwrite Team! 👋 I'm a verified member of the **GitHub Student Developer Pack** (approved August 15, 2025; valid until August 15, 2027). I've successful...
