User Profile

User's profile data

Use the myProfile query to return all profile data for the currently logged-in user including the information of the meal plan generated.

Available Fields

Field

Type

Description

id

ID

Profile ID

customAttributes

JSONString

Get all the attributes which where created with the createProfileCustomAttributes mutation

biologicalSex

biologicalSex

The biological sex of the user. Valid values are MALE and FEMALE

birthdate

Date

The date of birth of the user. Format: YYYY-MM-DD

startingWeight

Float

The user's current weight. Expressed in Kilograms.

targetWeight

Float

The user's target weight. Expressed in Kilograms.

activityLevel

ActivityLevel

User's weekly activity level. Valid values are NOT_ACTIVE, EXERCISE_1 (1 - 2 times per week) and EXERCISE_2 (3+ times per week)

height

Float

The height of the user. Expressed in meters.

dailyCaloricIntakeGoal

Int

Calculated field. Available after goal-related inputs (weight, height, age, gender, etc.) have been set. dailyCaloricIntakeGoal = totalDailyEnergyExpenditure - caloricDeficit

caloricDifference

Int

totalDailyEnergyExpenditure

Int

Amount of daily energy expenditure.

basalMetabolicRate

Int

Base metabolic rate

program

Object that contains the details of a program.

language

String

User language preference. Possible values:

EN: English

ES: Spanish

NL: Dutch

AR: Arabic

BE: English-UK

DE: German

CS: Czech

restrictions

Object that returns the details of the restrictions for the current profile.

mealPlan

Object that retrieves the Meal Plan information.

favoriteCuisines

[String]

User's favorite cuisines.

familySize

Int

Set's the default number of servings for all recipes.

phone

String

User phone number.

preferredCommunicationChannel

CommunicationChannel

Sets the preferred communication for the user: enum CommunicationChannel { SMS CHAT WHATSAPP }

enabledTrackers

[TrackerComponent]

Displays the list of trackers enabled for the user. enum TrackerComponent { DAILY_RECAP DAILY_MOOD WEIGHT_TRACKER MP_MEAL_TRACKER HYDRATION_TRACKER TODAY_FOOD TODAY_SUPPLEMENT FOOD_LOGS STEPS_TRACKER EXERCISE_TRACKER PLAN_SUPPLEMENT MY_CHECKLIST_TRACKER SLEEP_TIME_TRACKER SLEEP_QUALITY_SCORE_TRACKER HRV_TRACKER HEART_RATE_TRACKER PLAN_SUPPLEMENTS_MY_CHECKLIST FOOD_LOG_MEAL_TRACKER BLOOD_PRESSURE_TRACKER SYMPTOM_TRACKER }

appVersion

String

Displays the app version the user is currently using.

{
  myProfile {
    id
    age
    birthdate
    biologicalSex
    activityLevel
    startingWeight
    customAttributes
    targetWeight
    height
    weeklyWeightGoal
    goalsOn
    isImperial
    programName
    language
    restrictions {
      name
    }
    dailyCaloricIntakeGoal
    caloricDifference
    totalDailyEnergyExpenditure
    basalMetabolicRate
    program {
      databaseId
      name
      author
    }
    mealPlan {
      id
      day
      date
      meals {
        recipe {
          id
          name
        }
        meal
        calories
      }
    }
  }
}

Last updated

Was this helpful?