Simple Meal Plan Filters

The filters object filters and create a simple meal plan with specific information such as caloric range and tags per each meal plan, meaning breakfast, lunch, snack, and dinner. For instance, it is possible to create a filter that returns all the recipes tagged with "keto" and with a specific range of calories.

It is not necessary to define all the meal times for each filter. For instance, if the following filter is defined:

filters: {
      kcalRange: {
        breakfast: { min: 100, max: 500 }
        lunch: { min: 100, max: 400 }
        }
  }

The caloric range will be only applied to breakfast and lunch, while snack and dinner will be created with no caloric range.

Note: Use this in the generateSimpleMealPlanarrow-up-right only.

Available fields

Field Name

Type

Description

kcalRange

RangeByMealTimeInput

Include the minimun (min) and maximum (max) range of calories pear each meal time. Use the following meal time: breakfast lunch snack dinner i.e. breakfast should only use recipes with 300-500 calories per serving

tags

TermValuesByMealTimeInput

Predefined tag to be added to use it to filter a meal time Add one or more tags. Use the following meal time: breakfast lunch snack dinner i.e. snacks should only use recipes tagged "salad" or "smoothie"

Examples

How to use calorie range and tags

Last updated

Was this helpful?