How can MongoDB be used to manage dynamic menus and daily food truck specials on a website?

Hi @Suheb_Multani, this question seems a bit open-minded, there are other factors to consider but how I would think around it would be to create documents daily in a collection, every year leads to 366 documents max, this ensures it can scale easily, you can also decide to delete older documents if they are no longer relevant.

Each document can then represent the menu & special offers for that day. This model assumes that everything is always dynamic and is going to change which might not be the case, some things might be constant like the menu items.

1 Like