Wellness Score

The wellnessScoreLastSevenDays query returns the daily wellness scores for the previous seven days and the 7-day wellness score for a given date.

The wellness score is a numeric representation of Suggestic's streak logic system. It conveys the proportion of completed daily checkmarks on a scale of 1 to 10 as a 7-day moving average.

Required Arguments

Argument

Type

Description

date

DateTime!

Date to analyze

source

SourceType

Optional. Default is SUGGESTIC

Available Fields

Field Name

Type

Description

dailyStreakScore

[dailyStreakScore]

Daily wellness score

wellnessScore

Float

7-day wellness score

Example

query($date: Date!, $source: SourceType) {
            wellnessScoreLastSevenDays(date: $date, source: $source) {
                dailyStreakScore 
                {
                    date 
                    score 
                } 
                wellnessScore
            }
        }

Last updated