Weight Tracker

Use the weightTracker query to list all the weight entries for the desired date range along with the tendency of them.

Required Arguments

Argument

Type

Note

startDate

Date!

The starting date for the date range. Use the format: YYYY-MM-DD

endDate

Date!

The end date for the date range. Use the format: YYYY-MM-DD

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

date

Boolean

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

createdAt

String

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

value

PositiveInt!

Weight in kilos.

source

SourceType

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 }

type

TendencyType

"UP" If the tendency is adding weight. "DOWN" if the tendency is lowering weight. enum TendencyType { DOWN, UP }

difference

Float

Weight difference from starting point vs latest weight entry.

Example

query { weightTracker (startDate:"2023-03-11" endDate:"2023-03-14" source: SUGGESTIC){
  entries{
    date
    createdAt
    value
    source
  }
  tendency{
    type
    difference
  }
}}

Last updated