# How to create sub categories? I am trying to make a food delivery app

**URL:** <https://forum.adalo.com/t/how-to-create-sub-categories-i-am-trying-to-make-a-food-delivery-app/12310>\
**Category:** Get Help\
**Created:** [May 6, 2021, 3:04pm UTC](https://forum.adalo.com/t/how-to-create-sub-categories-i-am-trying-to-make-a-food-delivery-app/12310 "2021-05-06T15:04:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikikumar15](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/nikikumar15/32/8163_2.png) [@nikikumar15](https://forum.adalo.com/u/nikikumar15)\
**Post date:** [May 6, 2021, 3:04pm UTC](https://forum.adalo.com/t/how-to-create-sub-categories-i-am-trying-to-make-a-food-delivery-app/12310/1 "2021-05-06T15:04:14Z")

</div>

Hello team,

I want to create something like, The restaurant has a menu which has sub categories like starters, main course, dessert and goes on. How do i achieve this with database? The restaurant owners should also be able to edit the sub-menu headings to whatever they like.

---

<div class="post-metadata">

**Author:** ![ishantanusrivastava](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ishantanusrivastava/32/34947_2.png) [@ishantanusrivastava](https://forum.adalo.com/u/ishantanusrivastava)\
**Post date:** [May 7, 2021, 2:19pm UTC](https://forum.adalo.com/t/how-to-create-sub-categories-i-am-trying-to-make-a-food-delivery-app/12310/2 "2021-05-07T14:19:50Z")

</div>

Hi,

Welcome to the community.

For this purpose, you need to create a relationship between collections - 1 to many & vice versa.

Thanks

---

<div class="post-metadata">

**Author:** ![nikikumar15](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/nikikumar15/32/8163_2.png) [@nikikumar15](https://forum.adalo.com/u/nikikumar15)\
**Post date:** [May 7, 2021, 2:37pm UTC](https://forum.adalo.com/t/how-to-create-sub-categories-i-am-trying-to-make-a-food-delivery-app/12310/3 "2021-05-07T14:37:58Z")

</div>

I didn’t understand. So what i did was i created a relationship between Restaurant and Menu. Which says

A **Restaurant** can have multiple **Menus**  
A **Menu** belongs to one **Restaurant**

How do i let restaurant owners create multiple menu like starters or whatever heading. Under that comes the respective menu items. for example

Beverages - Soda  
Beverages - Water

---

<div class="post-metadata">

**Author:** ![ishantanusrivastava](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/ishantanusrivastava/32/34947_2.png) [@ishantanusrivastava](https://forum.adalo.com/u/ishantanusrivastava)\
**Post date:** [May 7, 2021, 2:40pm UTC](https://forum.adalo.com/t/how-to-create-sub-categories-i-am-trying-to-make-a-food-delivery-app/12310/4 "2021-05-07T14:40:01Z")

</div>

Hi,

Save all subcategories in the new collection with same relationship.

Adalo has a food ordering template, play with that you’ll get the idea.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [May 17, 2021, 2:40pm UTC](https://forum.adalo.com/t/how-to-create-sub-categories-i-am-trying-to-make-a-food-delivery-app/12310/5 "2021-05-17T14:40:09Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
