Add Weight Entry

Adds a weight entry to the tracker.

Use the createWeightentry mutation to record a new weight entry for the day.

Required Arguments

Argument

Type

Note

datetime

Datetime!

The datetime for the entry. Use the format: YYYY-MM-DDT hh:mm:ssZ

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 }

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 {
 createWeightEntry(source:SUGGESTIC date:"2023-03-11" value:99.15) {

     success
     message
 }
}

Last updated