Methods
batchUpdate(menu_items) → {Promise.<any>}
Batch update a list of menu items.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
menu_items |
List of BatchUpdateMenuItemsInput |
Returns:
- Type:
-
Promise.<any>
List of menu items with _id field
create(menu_item) → {Promise.<any>}
Create a new MenuItem, returns MenuItem _id if successful
- Source:
Parameters:
Name | Type | Description |
---|---|---|
menu_item |
Object
|
The MenuItem object |
Returns:
- Type:
-
Promise.<any>
- The id of the MenuItem object
delete(id) → {Promise.<any>}
Delete a MenuItem
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The id of the MenuItem Object |
Returns:
- Type:
-
Promise.<any>
- The id of the MenuItem object
update(id, menu_item) → {Promise.<any>}
Update an existing MenuItem based on given ID/menu_item, returns _id if successful
- Source:
Parameters:
Name | Type | Description |
---|---|---|
id |
string
|
The id of the MenuItem Object |
menu_item |
Object
|
The MenuItem Object |
Returns:
- Type:
-
Promise.<any>
- The id of the MenuItem object