I need a schema @.
There are some challenges in making dynamic categories, items and groups etc. In the same menu schema.
Client-side code for my real schema:
$ scope.create = function {var time = {'open': this Open, 'off': this.close}; Var SubitemGroup = {'name': this.name,}; Var item = {'name': this.item_name, 'sort': this.item_sort, 'description': this.item_description, 'price': this.item_price, '' time ': {' mon ': [time], 'Time': [time], 'marriage': [time], 'was': [time], 'Venus': [time], 'saturn': [time], 'sun': [time]}}; Var range = {name: this.categoryname, description: this.categorydescription, item: [item]}; Var menusObj = {'menuname': this.menu name, 'description': this.menu_description, 'address': {'city': this.city,}, 'categories': [category]}; };
I used angular form to post all values on the server. This adds all fields to the Mongoise schema field:
How do I create dynamic categories, items, subtitles etc. in the same menu? Is it possible with existing schema or do I need to split the existing schema into different schemas where we can add them with reference.
No comments:
Post a Comment