Get Daily Recap
Use the dailyRecap
query to get the information of the daily questions available in the coaching portal and in the app, based on a given date.
Required Argument
Argument Name | Type | Description |
| Date | Date when the question has been logged. Use the format |
| GroupQuestion | Argument used to get Mood recap. enum: |
Available Fields
Field | Type | Description |
| String | Daily recap question ID |
| Int | URL of the question's image |
| String | Question's title |
| Object that includes the answer information. |
Answer object
The Answer object displays the information of the answer
Available Fields
Field | Type | Description |
| ID | Answer unique ID |
| String | Answer text |
| Boolean |
|
| HabitAnswerType | User habit's answer type. There are three possible values: |
| String | Mood answer image URL. |
Example
{
dailyRecap(date: "2022-01-12") {
id
question
imageUrl
answers {
id
answer
selected
type
}
}
}
{
"data": {
"dailyRecap": [
{
"id": "RGFpbHlRdWVzdGlvbjo3Y2E4YzAxZS1kZDRjLTRlODktYjA3NS04ZGZmNzhlZDlhZTE=",
"question": "I exercised for at least 30 minutes",
"imageUrl": "https://sg-data.storage.googleapis.com/images_bucket/icon-recap-exercised-48e2ba45-6b6f-44eb-972b-d96082e2bfee.png",
"answers": [
{
"id": "QW5zd2VyOmZjYTNhYjEwLWU4NDAtNGExZS05NzkyLTc4OTE0NzhmMTE1Zg==",
"answer": "Yes, I did",
"selected": false,
"type": "POSITIVE"
},
{
"id": "QW5zd2VyOjY0OTViNTA0LWJhZDQtNGY2Ni05ZDI4LWRiZDk3NzAzOTRhMQ==",
"answer": "No, I didn't",
"selected": false,
"type": "NEGATIVE"
}
]
},
{
"id": "RGFpbHlRdWVzdGlvbjo2ZDI0ZjQ5Ny0wNzQzLTQyYTQtYThlZi1lNjhiNzkyZjA0NmU=",
"question": "I slept at least 7 hours",
"imageUrl": "https://sg-data.storage.googleapis.com/images_bucket/icon-recap-slept-1ba72e13-7495-44b9-894d-e3aa0bbc3d55.png",
"answers": [
{
"id": "QW5zd2VyOmI2MWVkZGJlLTc0ODYtNDFlOS1iNzNlLTQ5NmM0NzNmZGViYQ==",
"answer": "+ 7 hours",
"selected": false,
"type": "POSITIVE"
},
{
"id": "QW5zd2VyOjMwZjU3ZDU2LTViNzUtNGMzYi1hYzAxLWI2MGE0NzczOGJiZg==",
"answer": "- 7 hours",
"selected": false,
"type": "NEGATIVE"
}
]
}
]
}
}
Example for Mood
{
dailyRecap(date: "2023-05-09", group: MOOD){
question
answers{
id
imageUrl
type
selected
answer
}
}
}
{
"data": {
"dailyRecap": [
{
"question": "How are you feeling today?",
"answers": [
{
"id": "QW5zd2VyOjJjNWUzMWIzLTMxMGYtNDdjYy1hYzVmLWNlNGQ4NTcxMjNmZQ==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-anxious.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Anxious"
},
{
"id": "QW5zd2VyOjYwMjdkMDg2LWJkZDgtNGJmYS05MWZkLWU4YWYzOWZmOWI1ZA==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-content.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Content"
},
{
"id": "QW5zd2VyOjJhZDUyOGYyLWY5ODctNGU4Zi1hM2NiLTg2ODNjMGQ2ZmFmOQ==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-energized.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Energized"
},
{
"id": "QW5zd2VyOjU5OWJiYjZiLWZiYTUtNGUzMi04OWY3LWY3NTA2N2NhZTc2NQ==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-exited.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Excited"
},
{
"id": "QW5zd2VyOjE4ZjY1OWQ3LTJmOWYtNGZiMi04NDAzLTc5NDc1YzJmZjcxOQ==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-focused.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Focused"
},
{
"id": "QW5zd2VyOmI1MTBlZWRiLTY4MjgtNDdmZi04NDc3LTU2NmFhYjc1NTVjYg==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-frustrated.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Frustrated"
},
{
"id": "QW5zd2VyOjAwMmQxN2ViLTlkOWEtNDFmOS1hMzc3LTQ2ZWI4OTM2NjdlYQ==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-grateful.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Grateful"
},
{
"id": "QW5zd2VyOmI5ZTBkMDc0LWY2MGMtNDg4ZS1hMDhmLTY2NzA0YmRjMmJlMA==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-happy.png",
"type": "NEUTRAL",
"selected": true,
"answer": "Happy"
},
{
"id": "QW5zd2VyOmUxYzJkZDdkLWI3NTgtNDhiOS05YTI5LTI3MTQ0ZjZkMjU1ZA==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-hopeful.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Hopeful"
},
{
"id": "QW5zd2VyOjc2NzFhMGFlLTM5NjgtNGJjMy1iODU3LWE0ZWY2MGRlZTY3OA==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-inspired.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Inspired"
},
{
"id": "QW5zd2VyOjI1NjMyNjk5LTliZmItNGUyYy1iNTg3LWU4NTY1OWYyZTcwNw==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-sad.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Sad"
},
{
"id": "QW5zd2VyOmRjNjVkZjZmLWViOGMtNGNmZC1hZjBjLWZhZjE4NmJlYmE4MQ==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood%20Icons/ic_base_emoji-stressed.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Stressed"
},
{
"id": "QW5zd2VyOmNiOWVhYzNkLTZmN2EtNDRhYS04YmI5LWJjNWU5ZmM2OTQ3Mg==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-tired.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Tired"
},
{
"id": "QW5zd2VyOmFiNzBhMTQwLWFhZTMtNGExOS05MjNjLWFmNWNhMjk4NzY2ZA==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-uncertain.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Uncertain"
},
{
"id": "QW5zd2VyOjk1NmExNmVlLWRlZDAtNGM3Yy04OWEzLWRhYTUwY2NhNDM3YQ==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-unmotivated.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Unmotivated"
},
{
"id": "QW5zd2VyOmJjNWJmZmM3LTcxYjEtNGFmMi05NzY0LTlmMDBiOGVmNWQ4Ng==",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-worried.png",
"type": "NEUTRAL",
"selected": false,
"answer": "Worried"
}
]
}
]
}
}
Last updated