List Member Supplement Plans

Use the member query to list all supplement plans assigned to a member.

Required Arguments

query{
  member(id:"TWVtYmVyOmVhYzk4MjU2LTQ0MWMtNGExNy04NmY4LWQwZDM3NzI5ZDU3ZQ==") {
    id
    supplementPlans {
      edges {
        node {
          ...SupplementPlan
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
}

fragment SupplementPlan on SupplementPlan {
  id
  createdAt
  updatedAt
  isActive
  visibility
  name
  overview
  nutrition
  exercise
  resources
  startDate
  protocols(group: PROTOCOL) {
    ...SupplementPlanProtocol
    __typename
  }
  singleSupplements: protocols(group: SINGLE_SUPPLEMENT) {
    ...SupplementPlanProtocol
    __typename
  }
  __typename
}

fragment SupplementPlanProtocol on SupplementPlanProtocol {
  isActive
  createdAt
  updatedAt
  startsAt
  endsAt
  directionsOfUse {
    ...SupplementDirection
    __typename
  }
  protocol {
    ...Protocol
    __typename
  }
  monday
  tuesday
  wednesday
  thursday
  friday
  saturday
  sunday
  __typename
}

fragment SupplementDirection on SupplementDirection {
  id
  createdAt
  quantity
  timeOfDay
  updatedAt
  __typename
}

fragment Protocol on Protocol {
  id
  createdAt
  updatedAt
  isPublic
  length
  name
  bundle {
    id
    name
    __typename
  }
  program {
    id
    __typename
  }
  owner {
    id
    name
    isAdmin
    __typename
  }
  supplementProtocols {
    ...SupplementProtocol
    __typename
  }
  coachTypes {
    edges {
      node {
        id
        name
        description
        createdAt
        updatedAt
        __typename
      }
      __typename
    }
    __typename
  }
  __typename
}

fragment SupplementProtocol on SupplementProtocol {
  id
  directionsOfUse {
    timeOfDay
    quantity
    __typename
  }
  monday
  tuesday
  wednesday
  thursday
  friday
  saturday
  sunday
  supplement {
    id
    name
    servingName
    sizeCount
    __typename
  }
  __typename
}

Last updated