Profile Search

The searchProfile query can be used by partners to search its set of users by a given email address. In addition, get the information of the meal plan generated for that specific user.

Required Argument

Argument

Type

Description

email

string

User's profile email

Available fields

The following fields will be returned in the response

Field name

Type

Description

id

string

Profile ID

programName

string

Name of the program

userId

string

Id of the user who is related to the profile

basalMetabolicRate

Int

Basal Metabolic Rate calculated with the Harris–Benedict equation.

caloricDifference

Int

Caloric Difference between the daily caloric intake goal and the totally daily energy expenditure

dailyCaloricIntakeGoal

Int

The recommended daily calorie intake

mealPlan

Object that retrieves the Meal Plan information.

{
  searchProfile(email: "user@company.com") {
    id
    userId
    programName
    basalMetabolicRate
    caloricDifference
    dailyCaloricIntakeGoal
    mealPlan {
      id
      day
      date
      meals {
        recipe {
          id
          name
        }
        meal
        calories
      }
    }
  }
}

Last updated