Meal Planner (deprecated)

Suggestic's meal planner feature generates a plan that is compliant with the user's assigned program and all its preferences and restrictions.

This query will soon be deprecated you should probably use Meal Plan instead

The mealPlannerByDay query returns a meal plan that consists of 28 recipes composed of 4 meals per day for a 7-day period.

The query results are organized by day number (day1, day2, etc) with each day containing 4 recipes for each of the following meals: breakfast, snack, lunch and dinner.

Example of mealPlannerbyDay Query

{
  mealPlannerByDay(mealPlannerQueryType: SUGGESTIONS) {
    day1 {
      programDate
      breakfast {
        name
      }
      snack {
        name
      }
      lunch {
        name
      }
      dinner {
        name
      }
    }
    day2 {
      programDate
      breakfast {
        name
      }
      snack {
        name
      }
      lunch {
        name
      }
      dinner {
        name
      }
    }
  }
}

By Custom Format

The mealPlannerByCustomFormat query unlike mealPlannerByDay can be used to retrieve a custom format of meal times for example 2 snacks for a day.

Argument

Required

Description

format

True

Available meal time options: [BREAKFAST, SNACK, LUNCH, DINNER]. multiple options can be requested

Example:

{
  mealPlannerByCustomFormat(format: [BREAKFAST, SNACK, LUNCH, SNACK, DINNER]) {
    day1 {
      programDate
      mealTime
      recipe {
        name
      }
    }
    day2 {
      mealTime
      recipe {
        name
      }
    }
    day3 {
      mealTime
      recipe {
        name
      }
    }
  }
}

Last updated