Sleep Time
Use sleepTimes
query to get the number of total minutes of sleep the user has logged for the given date range.
Required Arguments
Argument | Type | Description |
| Date! | The start date when the steps will be counted. Use the format: |
| Date! | The end date when the steps will be counted. Use the format: |
| Int | Retrieves the first results from the list. |
| String | It takes the cursor type and retrieves results after that position. |
| ID | Id of Sleep Time record. |
Available Fields
Field Name | Type | Description |
| Int! | Daile goal of total sleep time in min. |
| Int! | Total Sleep time on the given dates in min. |
| Boolean! | Displays whether there are results in the connection after the current segment. |
| Boolean! | Displays whether there are results in the connection before the current segment. |
| Date! | Date the user logged Sleep Time |
| Int! | Total Sleep Time in min. |
| String! | Source of input, default is set to suggestic. |
| ID! | Id of Sleep Time record. |
Example
Last updated