Add Exercise Entry

Adds exercise entry on the tracker.

Use the addExerciseEntry to record the user's Exercise of the day.

Required Arguments

Argument

Type

Note

datetime

Datetime!

The date when the steps entrie will be counted. Use the format: YYYY-MM-DDT hh:mm:ssZ

type

ExerciseType!

Exercise Types: CARDIO, STRENGTH, WORKOUT_ROUTINE, RECOVERY, OTHER.

intensity

ExerciseIntensity!

Exercise Intensity: VIGOROUS, MODERATE, LOW.

durationMinutes

Int!

Time the exercise lasted in minutes.

calories

Int

Calories burned.

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 {
  addExerciseEntry(
  datetime: "2022-06-23T09:07:21-07:00"
  type: STRENGTH
  intensity: MODERATE
  durationMinutes: 60
  calories: 200
  ) 
  {
    success
    message
  }
}

UI Example

Last updated