Get Daily Recaps

Use the dailyRecaps query to get the information of the daily questions available in the coaching portal and in the app, based on given range of dates.

Required Argument

Argument Name

Type

Description

startDate

Date

The date when the daily recap questions will start counting. Use the format: YYYY-MM-DD

endDate

Date

The date when the daily recap questions will end counting. Use the format: YYYY-MM-DD

group

GroupQuestion

Argument used to get Mood recaps. enum: MOOD

Available Fields

Field

Type

Description

date

Date

Date assigned to the daily recap question

questions

Object that includes the questions information

DailyQuestions object

The Questions object displays the information of the answer.

Field

Type

Description

id

ID

Question unique ID

isDefault

Boolean

true if it is a default question.

done

String

true if the answer has been selected. Otherwise, false

imageURL

URL

URL of the question's image

question

String

Question's title

answer

Object that includes the answer information.

Answer object

The Answer object displays the information of the answer

Available Fields

Field

Type

Description

id

ID

Answer unique ID

answer

String

Answer text

selected

Boolean

true if the answer has been selected. Otherwise, false

type

HabitAnswerType

User habit's answer type. There are three possible values: NEGATIVE, NEUTRAL, POSITIVE

Example

{
  dailyRecaps(startDate: "2022-02-15", endDate: "2022-02-24") {
    date
    questions {
      id
      isDefault
      done
      imageUrl
      question
      answers {
        id
        answer
        selected
        type
      }
    }
  }
}

Example for Mood

{
  dailyRecaps(startDate: "2023-05-08", endDate: "2023-05-10" group: MOOD) {
    date
    questions {
      id
      done
      imageUrl
      question
      answers {
        id
        answer
        selected
        type
        imageUrl
      }
    }
  }
}