From Days

The fromDays option, copy an existing meal plan which has a user assigned. Send a profileId and user's meal plan days required to be copied and saved in the template.

Available Arguments

Refer to this documentarrow-up-right to see the available arguments to use in this mutation.

Example

Copy an existing meal plan

mutation {
  createMealPlanTemplate(
    description: "Meal Plan Template"
    fromDays: {
      fromDate: "2021-11-02"
      profileId: "UHJvZmlsZTo3MzliNmExOC1lMjJjLTRiNTktYWZhZC00NTE1NTYxZGM4NDA="
      toDate: "2021-11-03"
    }
    name: "New Meal Plan Template"
  )
  {
    message
    success

Last updated

Was this helpful?