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. Returned values:

en: English

es: Spanish

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.

{
  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