Meal Plan Template Search

Use the mealPlanTemplates to find templates already created with the createMealPlanTemplate mutation.

Use the Authorization: Token <api-token> to execute this query.

Available Arguments

Field Name

Type

Description

search

string

Introduce the word or the template name you want to find.

byCoach

ID

Unique Id of the Coach. Use this if the third party has access to the Coaching Portal

excludeCoach

ID

Unique Id of the Coach which information will be excluded from the search. Use this if the third party has access to the Coaching Portal

newerFirst

boolean

True if the results will show the newer meal plan templates created

Available Fields

Field Name

Type

Description

id

ID

Unique template ID

description

String

Description of the template

coachId

ID

Unique Coach Id template. Use this if the third party has access to the Coaching Portal

isPublic

Boolean

True if the template is Public. Otherwise it displays False

createdAt

DateTime

Date and time when the meal plan template was created

Pagination

The mealPlanTemplates query supports the use of pagination. The following fields can be used

 pageInfo{
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }

Example

query {
  mealPlanTemplates {
    edges {
      node {
        id
        description
        createdAt
        coachId
        isPublic
        days {
          day
          meals {
            recipe {
              name
            }
            calories
            numOfServings
          }
        }
      }
    }
  }
}

Last updated