Add Sleep Time

Adds Sleep time entry to the tracker.

Use the addSleepTime mutation to add the total overall sleep without wake times in minutes.

Required Arguments

Argument

Type

Note

date

Date

The date when the sleep time entrie will be counted. Use the format: YYYY-MM-DD

value

Int!

overall sleep duration without wake times in minutes

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 {
  addSleepTime (value: 480, date: "2022-08-11") {
    success
    message
  }
}

UI Example

Last updated