Get Daily Mood Summary
Last updated
Last updated
Use the dailyMoodSummary
query to get the stats of how many times a user selected a daily Mood.
query dailyMoodSummary {
dailyMoodSummary(startDate: "2023-05-08", endDate:"2023-05-10") {
answersStats {
total
answer {
id
answer
imageUrl
type
}
}
}
}
{
"data": {
"dailyMoodSummary": {
"answersStats": [
{
"total": 0,
"answer": {
"id": "QW5zd2VyOjJjNWUzMWIzLTMxMGYtNDdjYy1hYzVmLWNlNGQ4NTcxMjNmZQ==",
"answer": "Anxious",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-anxious.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOjYwMjdkMDg2LWJkZDgtNGJmYS05MWZkLWU4YWYzOWZmOWI1ZA==",
"answer": "Content",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-content.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOjJhZDUyOGYyLWY5ODctNGU4Zi1hM2NiLTg2ODNjMGQ2ZmFmOQ==",
"answer": "Energized",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-energized.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOjU5OWJiYjZiLWZiYTUtNGUzMi04OWY3LWY3NTA2N2NhZTc2NQ==",
"answer": "Excited",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-exited.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOjE4ZjY1OWQ3LTJmOWYtNGZiMi04NDAzLTc5NDc1YzJmZjcxOQ==",
"answer": "Focused",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-focused.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOmI1MTBlZWRiLTY4MjgtNDdmZi04NDc3LTU2NmFhYjc1NTVjYg==",
"answer": "Frustrated",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-frustrated.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOjAwMmQxN2ViLTlkOWEtNDFmOS1hMzc3LTQ2ZWI4OTM2NjdlYQ==",
"answer": "Grateful",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-grateful.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOmI5ZTBkMDc0LWY2MGMtNDg4ZS1hMDhmLTY2NzA0YmRjMmJlMA==",
"answer": "Happy",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-happy.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOmUxYzJkZDdkLWI3NTgtNDhiOS05YTI5LTI3MTQ0ZjZkMjU1ZA==",
"answer": "Hopeful",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-hopeful.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOjc2NzFhMGFlLTM5NjgtNGJjMy1iODU3LWE0ZWY2MGRlZTY3OA==",
"answer": "Inspired",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-inspired.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOjI1NjMyNjk5LTliZmItNGUyYy1iNTg3LWU4NTY1OWYyZTcwNw==",
"answer": "Sad",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-sad.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOmRjNjVkZjZmLWViOGMtNGNmZC1hZjBjLWZhZjE4NmJlYmE4MQ==",
"answer": "Stressed",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood%20Icons/ic_base_emoji-stressed.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOmNiOWVhYzNkLTZmN2EtNDRhYS04YmI5LWJjNWU5ZmM2OTQ3Mg==",
"answer": "Tired",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-tired.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOmFiNzBhMTQwLWFhZTMtNGExOS05MjNjLWFmNWNhMjk4NzY2ZA==",
"answer": "Uncertain",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-uncertain.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOjk1NmExNmVlLWRlZDAtNGM3Yy04OWEzLWRhYTUwY2NhNDM3YQ==",
"answer": "Unmotivated",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-unmotivated.png",
"type": "NEUTRAL"
}
},
{
"total": 0,
"answer": {
"id": "QW5zd2VyOmJjNWJmZmM3LTcxYjEtNGFmMi05NzY0LTlmMDBiOGVmNWQ4Ng==",
"answer": "Worried",
"imageUrl": "https://storage.googleapis.com/sg-data/serena/Mood Icons/ic_base_emoji-worried.png",
"type": "NEUTRAL"
}
}
]
}
}
}
Field
Type
Description
startDate
Date
The date when the daily mood will start counting. Use the format: YYYY-MM-DD
endDate
Date
The date when the daily mood will start counting. Use the format: YYYY-MM-DD
Field
Type
Description
answersStats
[AnswerCounter]
Track the number of times user selects this mood.
answer
String
Answer text
id
ID
Answer ID
imageURL
URL
Mood answer image URL.
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