UserCourseAwardCounts
Returns the awards a learner has earned for a course. The results of this query can be affected by providing an authToken header to set a user for the operation.
UserCourseAwardCounts(
courseId: ID!
): [UserAwardCount!]!
Directives
authAccess
This requires the current user to be in
STUDENT
role.
Arguments
UserCourseAwardCounts.courseId
● ID!
non-null scalar
Type
UserAwardCount
object
Examples
Query:
UserCourseAwardCounts($courseId: ID!) {
UserCourseAwardCounts(courseId: $courseId) {
id
label
icon
count
}
}
Variables:
{
"courseId": "58ccb96c-8e90-4464-86e0-f284442981df"
}
Response:
{
"data": {
"UserCourseAwardCounts": [
{
"id": "58ccb96c-8e90-4464-86e0-f284442981df",
"label": "abc123",
"icon": "fullStar",
"count": 678
}
]
}
}