Add Heart Rate

Adds heart rate entry to the tracker.

Use the addHeartRateLog mutation to record the heart rate given for the day.

Required Arguments

Argument

Type

Note

datetime

Datetime!

The datetime when the heart rate entry will be counted. Use the format: YYYY-MM-DDT hh:mm:ssZ

value

PositiveInt!

Heart rate value.

source

String

Source of input, default is set to suggestic. enum SourceType { APPLE FITBIT GARMIN GOOGLEFIT_NATIVE GOOGLEFIT_REST HUAWEIHEALTH IHEALTH MISFIT OMRONCONNECT OMRONWELLNESS OURA POLAR SAMSUNG STRAVA SUGGESTIC SUUNTO WITHINGS }

Available Fields

Field

Type

Note

success

Boolean

true: If the entry has been created successfully. Otherwise, it displays false

message

String

The message returns either if the information has been updated or not.

Example

mutation{
  addHeartRateLog(
    source:GARMIN
    timestamp:"2023-10-03"
    value:"88"
  ){
    success
    message
  }
}

Last updated