Dishes
Fetching dishes for a specific menu category
You can fetch the queries for a specific menu category.
Parameters
$outletId: The ID of the outlet to fetch the menu categories for.$categoryId: The ID of the menu category to fetch the offers for.
Query
query GetDishesForMenuCategory($outletId: String!, $categoryId: String!) {
outlet(where: { id: $outletId }) {
calendar {
week {
menuCategory(categoryId: $categoryId) {
category {
name
}
daily {
date {
dateLocal
weekday
}
menuItems {
category {
name
}
... on OutletMenuItemDish {
dish {
name
imageUrl
allergens {
allergen {
name
}
}
isVegan
isVegetarian
}
}
}
}
}
}
}
}
}
Graphiql
Fetching all dishes in all categories
This query returns all dishes in all categories for a specific outlet.
Parameters
outletId: The ID of the outlet to fetch the menu categories for.$categoryId: The ID of the menu category to fetch the offers for.
Query
query GetAllDishesForOutlet($outletId: String!) {
outlet(where: { id: $outletId }) {
calendar {
week {
menuCategory(categoryId: $categoryId) {
category {
name
}
daily {
date {
dateLocal
weekday
}
menuItems {
category {
name
}
... on OutletMenuItemDish {
dish {
name
imageUrl
allergens {
allergen {
name
}
}
isVegan
isVegetarian
}
}
}
}
}
}
}
}
}
Graphiql
Fetching for weeks
You can fetch the menus or dishes for a whole Week. A week starts from Monday to Sunday.
Next/Previous week
Parameters
outletId: The ID of the outlet to fetch the menu categories for.week: (optional) The week to fetch. Can benext,prev,prev2or a specific week like13for the 13th week of the year.year: (optional) The yearYYYY.
Query
next week
query GetNextWeek($outletId: String!) {
outlet(where: { id: $outletId }) {
calendar {
week(week: "next") {
...
}
}
}
}
last week
query GetPrevWeek($outletId: String!) {
outlet(where: { id: $outletId }) {
calendar {
week(week: "prev") {
...
}
}
}
}
two weeks ago
query GetPrev2Week($outletId: String!) {
outlet(where: { id: $outletId }) {
calendar {
week(week: "prev2") {
...
}
}
}
}
specific week
query GetWeek($outletId: String!, $week: String!, $year: String!) {
outlet(where: { id: $outletId }) {
calendar {
week(week: $week, year: $year) {
...
}
}
}
}
Graphiql
fetching additional weekly infos
You can fetch additional weekly infos for a specific outlet.
Parameters
outletId: The ID of the outlet to fetch the weekly infos for.
Query
query GetWeeklyInfos($outletId: String!) {
outlet(where: { id: $outletId }) {
calendar {
week {
info {
info
validFrom
validTo
}
}
}
}
}
Graphiql
Allergens
Allergens on Dish
On each Dish menu item you get all allergens this dish contains:
List all Allergens
To list all allergens you can use the following query: