Add Steps Count

Adds steps count entry to the tracker.

Use the addStepsCount mutation to record the number of steps given for the day.

Required Arguments

Argument

Type

Note

datetime

Datetime!

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

steps

Int!

Number of steps

source

String

Source of input, default is set to suggestic.

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 {
  addStepsCount (
  datetime: "2022-06-23T09:07:21-07:00"
  steps: 8000
  source: SUGGESTIC
  ) 
  {
    success
    message
  }
}

UI Example

Last updated