Skip to main content

UserCourseAwardCounts

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

Run in Postman

Query:

UserCourseAwardCounts($courseId: ID!) {
UserCourseAwardCounts(courseId: $courseId) {
id
label
icon
count
}
}

Variables:

{
"courseId": "0e99a117-e3b6-40a6-867c-6b3bbc166b41"
}

Response:

{
"data": {
"UserCourseAwardCounts": [
{
"id": "0e99a117-e3b6-40a6-867c-6b3bbc166b41",
"label": "xyz789",
"icon": "fullStar",
"count": 116
}
]
}
}