Restrictions

Returns all available food restrictions.

Use the restrictions query to obtain a list of all available food restrictions.

Available Fields

Example

{
  restrictions(first: 10) {
    edges {
      node {
        id
        name
        subcategory
        slugname
        isOnProgram
      }
    }
  }
}

Categories

Each restriction belongs to one of the following categories.

  • Most Common

  • Animal Origin

  • Cereals and Grains

  • Fruits and Vegetables

  • General

  • Herbs and Spices

  • Nuts and Seeds

Preset Restrictions (isOnProgram)

The isOnProgram field allows you to identify the list of restrictions already part of the user's program.

For example, from an end-user perspective, it would be redundant to be able to add an "avoid meat" restriction when following a vegan diet. So, the isOnProgram allows you to identify the list of restrictions already part of the user's program.

From a UI/UX perspective, we recommend hiding or disabling these restrictions to reduce user confusion.

Setting these preset restrictions can be done from the Program section on the Admin Console.

Restrictions List

As follows find the restriction list divided into categories:

Most Common

Animal Origin

Cereals and Grains

Fruits and Vegetables

General

Herbs and Spices

Nuts and Seeds

Last updated